$creator
$creator : \Pho\Framework\Actor
Who created this node. Must point to an Actor.
Points to self by Actor particles.
The Particle Trait
This constitutes the basis of all particle classes that are part of the Pho Framework; namely Actor, \Pho\Framework\Frame and Obj.
Pho Framework particles extend Pho\Lib\Graph\Node
$creator : \Pho\Framework\Actor
Who created this node. Must point to an Actor.
Points to self by Actor particles.
registerIncomingEdges( $classes) : void
Registers the incoming edges.
The default ones for all nodes are:
$classes |
registerOutgoingEdges( $classes) : void
Registers the outgoing edges.
$classes |
getRegisteredIncomingEdges()
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
getRegisteredOutgoingEdges()
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
registerHandler(string $key, string $class) : void
Registers a new handler adapter.
Default handlers may be overriden.
string | $key | Adapter key; e.g. "get", "set", "form" etc. |
string | $class | Handler class to register. A handler class shall implement HandlerInterface |
toArray() : array
Converts the particle into array
For serialization and portability.
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 1275existentials()
{@inheritdoc}
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 1275creator() : \Pho\Framework\Actor
Retrieves the creator of this 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 1275notifySubscribers(\Pho\Framework\AbstractNotification $notification) : void
Sends notification to subscriber particles
\Pho\Framework\AbstractNotification | $notification |
exportCargo() : array
Returns all incoming edge, outgoing edge and field keywords.
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 1275An array of incoming edge / outgoing edge / field cargo
initializeParticle() : void
Initializes the particle.
Its functions include:
initializeHandler() : void
A helper method to set up edges and fields.
Its inner functions can be summarized as:
1) Uses the Loaders to
autoRegisterOutgoingEdges() : void
Auto-registers outgoing edge classes
Auto-registration is done by directory structure. Directories that sit in this folder, and are named after this class with "Out" suffix (such as "MyNodeOut" for a node class named "MyNode") would be candidate for auto-registration.
Please note, this does not check if it's actually an Edge class. The check is done by the OutgoingEdgeLoader class.
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 1275addEdges(string $direction, $classes) : self
A helper method to register edges
string | $direction | Either incoming or outgoing |
$classes |