コード例 #1
0
 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;
 }
コード例 #2
0
 function __construct(FilePublisherInterface $publisher)
 {
     parent::__construct();
     $this->publisher = $publisher;
 }