line = $line; $this->docComment = $docComment; } /** * Gets the type of the node. * * @return string Type of the 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; } }