Node Tree class for Zend\Server reflection operations

 Methods

Constructor

__construct(mixed $value, \Zend\Server\Reflection\Node $parent) : \Zend\Server\Reflection\Node

Parameters

$value

mixed

Returns

Attach a child node

attachChild(\Zend\Server\Reflection\Node $node) : void

Parameters

Create and attach a new child node

createChild(mixed $value) : \Zend\Server\Reflection\Node

access public

Parameters

$value

mixed

Returns

Return an array of all child nodes

getChildren() : array

Returns

array

Retrieve the bottommost nodes of this node's tree

getEndPoints() : array

Retrieves the bottommost nodes of the tree by recursively calling getEndPoints() on all children. If a child is null, it returns the parent as an end point.

Returns

array

Return the parent node

getParent() : null | \Zend\Server\Reflection\Node

Return the node's current value

getValue() : mixed

Returns

mixed

Does this node have children?

hasChildren() : bool

Returns

bool

Set parent node

setParent(\Zend\Server\Reflection\Node $node, bool $new) : void

Parameters

$new

bool

Whether or not the child node is newly created and should always be attached

Set the node value

setValue(mixed $value) : void

Parameters

$value

mixed

 Properties

 

Array of child nodes (if any)

$children : array

 

Parent node (if any)

$parent : \Zend\Server\Reflection\Node

 

Node value

$value : mixed