src/ImageStack/ImageManipulator/ThumbnailerImageManipulator.php
public function addThumbnailRule(ThumbnailRuleInterface $thumbnailRule)
	{
	    if ($thumbnailRule instanceof ImagineAwareInterface) {
	        // not very LSP but handy
	        if (!$thumbnailRule->getImagine()) {
	           $thumbnailRule->setImagine($this->getImagine(), $this->getImagineOptions());
	        }
	    }
	    $this->thumbnailRules[] = $thumbnailRule;
	}
public function addThumbnailRule(ThumbnailRuleInterface $thumbnailRule)
	{
	    if ($thumbnailRule instanceof ImagineAwareInterface) {
	        // not very LSP but handy
	        if (!$thumbnailRule->getImagine()) {
	           $thumbnailRule->setImagine($this->getImagine(), $this->getImagineOptions());
	        }
	    }
	    $this->thumbnailRules[] = $thumbnailRule;
	}
public function addThumbnailRule ( ThumbnailRuleInterface $ thumbnailRule ) { if ( $ thumbnailRule instanceof ImagineAwareInterface ) { // not very LSP but handy if ( ! $ thumbnailRule -> getImagine ( ) ) { $ thumbnailRule -> setImagine ( $ this -> getImagine ( ) , $ this -> getImagineOptions ( ) ) ; } } $ this -> thumbnailRules [ ] = $ thumbnailRule ; }
Add a thumbnail rule.
@param ThumbnailRuleInterface $thumbnailRule
Add a thumbnail rule .