handle()
handle(\Pho\Framework\ParticleInterface $particle, array $pack, \Pho\Framework\Handlers\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. |
\Pho\Framework\Handlers\string | $name | Catch-all method name |
array | $args | Catch-all method arguments |
Throws
- \InvalidArgumentException
thrown when there argument does not meet the constraints.
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.