filename = $filename; return $this; } /** * Get the full path to the current file being parsed * * @return string */ public function getFilename() { return $this->filename; } /** * Get the directory of the current file being parsed * * @return string */ public function getDir() { return dirname($this->getFilename()); } }