PHP 클래스 PhpParser\NodeAbstract

상속: implements phpparser\Node, implements JsonSerializable
파일 보기 프로젝트 열기: nikic/php-parser 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

__construct() 공개 메소드

Creates a Node.
public __construct ( array $attributes = [] )
$attributes array Array of attributes

getAttribute() 공개 메소드

public getAttribute ( $key, $default = null )

getAttributes() 공개 메소드

public getAttributes ( )

getDocComment() 공개 메소드

The doc comment has to be the last comment associated with the node.
public getDocComment ( ) : null | Comment\Doc
리턴 null | Comment\Doc Doc comment object or null

getLine() 공개 메소드

Gets line the node started in.
public getLine ( ) : integer
리턴 integer Line

getType() 공개 메소드

Gets the type of the node.
public getType ( ) : string
리턴 string Type of the node

hasAttribute() 공개 메소드

public hasAttribute ( $key )

jsonSerialize() 공개 메소드

public jsonSerialize ( )

setAttribute() 공개 메소드

public setAttribute ( $key, $value )

setDocComment() 공개 메소드

This will either replace an existing doc comment or add it to the comments array.
public setDocComment ( Comment\Doc $docComment )
$docComment Comment\Doc Doc comment to set

setLine() 공개 메소드

Sets line the node started in.
public setLine ( integer $line )
$line integer Line

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

protected $attributes