PHP 클래스 Kahlan\Jit\Node\NodeDef

파일 보기 프로젝트 열기: crysalead/kahlan

공개 프로퍼티들

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