PHP Class Kahlan\Jit\Node\NodeDef

Afficher le fichier Open project: crysalead/kahlan

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__construct ( string $body = '', string $type = null ) The constructor.
__toString ( ) : string Returns the textual representation of the node.

Method Details

__construct() public méthode

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() public méthode

Returns the textual representation of the node.
public __toString ( ) : string
Résultat string

Property Details

$body public_oe property

The textual body of the node.
public string $body
Résultat string

$close public_oe property

The textual closing body of the node (used for function).
public string $close
Résultat string

$coverable public_oe property

Boolean indicating if code coverage is pertinant on this node.
public bool $coverable
Résultat boolean

$function public_oe property

The node's parent function.
public instance|null $function
Résultat instance | null

$hasMethods public_oe property

Boolean indicating this node is a trait, class or interface.
public bool $hasMethods
Résultat boolean

$inPhp public_oe property

Boolean indicating if it's a PHP or plain text HTML node.
public bool $inPhp
Résultat boolean

$lines public_oe property

Some meta data about the node.
public array $lines
Résultat array

$namespace public_oe property

The node's namespace.
public instance|null $namespace
Résultat instance | null

$parent public_oe property

The node's parent.
public instance|null $parent
Résultat instance | null

$processable public_oe property

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
Résultat boolean

$tree public_oe property

The children of the node.
public array $tree
Résultat array

$type public_oe property

The node's type.
public string $type
Résultat string