public function __construct($params) { parent::__construct($params); if (empty($this->_params['exiftool'])) { throw new InvalidArgumentException('Missing required exiftool path'); } $this->_exiftool = $this->_params['exiftool']; }