프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$attributes |
메소드 | 설명 | |
---|---|---|
__construct ( array $attributes = [] ) | Creates a Node. | |
getAttribute ( $key, $default = null ) | ||
getAttributes ( ) | ||
getDocComment ( ) : null | Comment\Doc | Gets the doc comment of the node. | |
getLine ( ) : integer | Gets line the node started in. | |
getType ( ) : string | Gets the type of the node. | |
hasAttribute ( $key ) | ||
jsonSerialize ( ) | ||
setAttribute ( $key, $value ) | ||
setDocComment ( Comment\Doc $docComment ) | Sets the doc comment of the node. | |
setLine ( integer $line ) | Sets line the node started in. |
public __construct ( array $attributes = [] ) | ||
$attributes | array | Array of attributes |
public getDocComment ( ) : null | Comment\Doc | ||
리턴 | null | Comment\Doc | Doc comment object or null |
public setDocComment ( Comment\Doc $docComment ) | ||
$docComment | Comment\Doc | Doc comment to set |