-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
https://twitter.com/maksim_ka2/status/913404270732615680
<?php
public function can(string $nodeLabel, string $action): bool
{
$stateNode = null;
foreach ($this->process->getNodes() as $node) {
if ($node->getLabel() === $nodeLabel) {
$stateNode = $node;
}
}
if (false == $stateNode) {
throw new \LogicException();
}
return (bool) $this->process->getOutTransitionsWithName($stateNode, $action);
}Metadata
Metadata
Assignees
Labels
No labels