public function __construct($config = []) { if (!isset($config['path'])) { throw new \InvalidArgumentException('Argument `path` not found'); } $this->filePath = $config['path']; parent::__construct($config); }