PHP Класс Kahlan\Jit\Node\NodeDef

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$body string The textual body of the node.
$close string The textual closing body of the node (used for function).
$coverable boolean Boolean indicating if code coverage is pertinant on this node.
$function instance | null The node's parent function.
$hasMethods boolean Boolean indicating this node is a trait, class or interface.
$inPhp boolean Boolean indicating if it's a PHP or plain text HTML node.
$lines array Some meta data about the node.
$namespace instance | null The node's namespace.
$parent instance | null The node's parent.
$processable boolean Use case: when multiple patchers are patching the same code. It's sometimes usefull to mark a node as "unprocessable" and let patchers know that this is not "original code" but already some added patched code.
$tree array The children of the node.
$type string The node's type.

Открытые методы

Метод Описание
__construct ( string $body = '', string $type = null ) The constructor.
__toString ( ) : string Returns the textual representation of the node.

Описание методов

__construct() публичный Метод

The constructor.
public __construct ( string $body = '', string $type = null )
$body string The textual body of the node.
$type string The type of the node.

__toString() публичный Метод

Returns the textual representation of the node.
public __toString ( ) : string
Результат string

Описание свойств

$body публичное свойство

The textual body of the node.
public string $body
Результат string

$close публичное свойство

The textual closing body of the node (used for function).
public string $close
Результат string

$coverable публичное свойство

Boolean indicating if code coverage is pertinant on this node.
public bool $coverable
Результат boolean

$function публичное свойство

The node's parent function.
public instance|null $function
Результат instance | null

$hasMethods публичное свойство

Boolean indicating this node is a trait, class or interface.
public bool $hasMethods
Результат boolean

$inPhp публичное свойство

Boolean indicating if it's a PHP or plain text HTML node.
public bool $inPhp
Результат boolean

$lines публичное свойство

Some meta data about the node.
public array $lines
Результат array

$namespace публичное свойство

The node's namespace.
public instance|null $namespace
Результат instance | null

$parent публичное свойство

The node's parent.
public instance|null $parent
Результат instance | null

$processable публичное свойство

Use case: when multiple patchers are patching the same code. It's sometimes usefull to mark a node as "unprocessable" and let patchers know that this is not "original code" but already some added patched code.
public bool $processable
Результат boolean

$tree публичное свойство

The children of the node.
public array $tree
Результат array

$type публичное свойство

The node's type.
public string $type
Результат string