芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/imagine/imagine/src/Filter/Basic/ApplyMask.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Imagine\Filter\Basic; use Imagine\Filter\FilterInterface; use Imagine\Image\ImageInterface; /** * An apply mask filter. */ class ApplyMask implements FilterInterface { /** * @var \Imagine\Image\ImageInterface */ private $mask; /** * Initialize the instance. * * @param \Imagine\Image\ImageInterface $mask */ public function __construct(ImageInterface $mask) { $this->mask = $mask; } /** * {@inheritdoc} * * @see \Imagine\Filter\FilterInterface::apply() */ public function apply(ImageInterface $image) { return $image->applyMask($this->mask); } }