Property | 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. |
Method | Description | |
---|---|---|
__construct ( string $body = '', string $type = null ) | The constructor. | |
__toString ( ) : string | Returns the textual representation of the node. |
public __construct ( string $body = '', string $type = null ) | ||
$body | string | The textual body of the node. |
$type | string | The type of the node. |
public __toString ( ) : string | ||
return | string |
public string $close | ||
return | string |
public bool $coverable | ||
return | boolean |
public instance|null $function | ||
return | instance | null |
public bool $hasMethods | ||
return | boolean |
public bool $inPhp | ||
return | boolean |
public instance|null $namespace | ||
return | instance | null |
public bool $processable | ||
return | boolean |