PHP Класс PhpParser\NodeAbstract

Наследование: implements phpparser\Node, implements JsonSerializable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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