line = $line; $this->docComment = $docComment; } /** * Gets the type of this node. * * The type of a node is the node's class name without the * PHPParser_Node_ prefix. * * @return string Type of this node */ public function getType() { return substr(get_class($this), 15); } /** * Gets line the node started in. * * @return int Line */ public function getLine() { return $this->line; } /** * Gets the nearest doc comment. * * @return null|string Nearest doc comment or null */ public function getDocComment() { return $this->docComment; } }