Method |
Description |
|
getAttribute ( string $key, mixed $default = null ) : mixed |
Returns the value of an attribute. |
|
getAttributes ( ) : array |
Returns all attributes for the given node. |
|
getDocComment ( ) : null | Comment\Doc |
Gets the doc comment of the node. |
|
getLine ( ) : integer |
Gets line the node started in. |
|
getSubNodeNames ( ) : array |
Gets the names of the sub nodes. |
|
getType ( ) : string |
Gets the type of the node. |
|
hasAttribute ( string $key ) : boolean |
Returns whether an attribute exists. |
|
setAttribute ( string $key, mixed $value ) |
Sets an attribute on a node. |
|
setDocComment ( Comment\Doc $docComment ) |
Sets the doc comment of the node. |
|
setLine ( integer $line ) |
Sets line the node started in. |
|