\Pho\Lib\GraphTailNode

Edge's Tail

Identifies where an edge originates from. Differently from head nodes, the TailNode class implements the Observer pattern as a Subject to observe their edge for deletion.

Summary

Methods
Properties
Constants
set()
node()
destroy()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : 

Type

Methods

set()

set(\Pho\Lib\Graph\NodeInterface  $node) : void

Sets the node instance that this

Parameters

\Pho\Lib\Graph\NodeInterface $node
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

node()

node() : \Pho\Lib\Graph\NodeInterface

Retrieves the node represented

In light of Proxy pattern, adjacent nodes represent an actual node, and pass any incoming method calls to that object. This function returns the actual node.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Pho\Lib\Graph\NodeInterface

destroy()

destroy() : void

{@inheritdoc}

Differently from all other entities in the graph, when destroyed, tail nodes notify their outgoing edges.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275