\Pho\Framework\HandlersHandlerInterface

Handler Interface

Handlers handle catch-all methods of particles (aka nodes)

Summary

Methods
Constants
handle()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

handle()

handle(\Pho\Framework\ParticleInterface  $particle, array  $pack, string  $name, array  $args) : mixed

Catch-all handler

Parameters

\Pho\Framework\ParticleInterface $particle

The particle that this handler is working on.

array $pack

Holds cargo variables extracted by loaders.

string $name

Catch-all method name

array $args

Catch-all method arguments

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

mixed —

"Has"=>bool. Get=>array. Set/Form=>\Pho\Lib\Graph\EdgeInterface by default, but in order to provide flexibility for higher-level components to return node (in need) the official return value is \Pho\Lib\Graph\EntityInterface which is the parent of both NodeInterface and EdgeInterface.