\Pho\Lib\GraphAdjacentNode

For easy maintenance of TailNode and HeadNode classes.

Edges must have both source and target nodes that behave exactly the same. This class is created to make the portability of TailNode and HeadNode classes easy.

This class and its subclasses follow tbe Proxy pattern.

Summary

Methods
Properties
Constants
set()
node()
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