/** * Constructor. * * @param ImagineInterface $imagine * @param array $formats * @param string $rootPath * @param DocumentManager $manager * @param string $class */ public function __construct(ImagineInterface $imagine, array $formats, $rootPath, DocumentManager $manager, $class = null) { parent::__construct($imagine, $formats, $rootPath); $this->manager = $manager; $this->class = $class; $this->rootPath = $rootPath; }
/** * Constructor. * * @param ImagineInterface $imagine * @param array $formats * @param string $rootPath * @param TransformerInterface[] $transformers */ public function __construct(ImagineInterface $imagine, $formats, $rootPath, array $transformers) { parent::__construct($imagine, $formats, $rootPath); $this->transformers = $transformers; }