file = $file; if (!file_exists($file)) { throw new Exception\InvalidArgumentException(sprintf( 'File "%s" not found', $file )); } parent::__construct(token_get_all(file_get_contents($file)), $annotationManager); } /** * @return null|string */ public function getFile() { return $this->file; } }