parserErrors = $errors; parent::__construct(head($errors)); } public function getParserErrors() { return $this->parserErrors; } }