public function __construct(ImageManipulatorInterface $manipulator, $width = null, $height = null) { parent::__construct(); if (isset($width) && isset($height)) { $this->size = new Size($width, $height); } $this->manipulator = $manipulator; }
function __construct(FilePublisherInterface $publisher) { parent::__construct(); $this->publisher = $publisher; }