libSmalldb
v2.0.2
|
Dummy transition guard that allows everything.
Public Member Functions | |
__construct (bool $allowEverything=true) | |
isTransitionAllowed (ReferenceInterface $ref, TransitionDefinition $transition) | |
A simple and cost-effective check whether the transition can be invoked. More... | |
__construct | ( | bool | $allowEverything = true | ) |
isTransitionAllowed | ( | ReferenceInterface | $ref, |
TransitionDefinition | $transition | ||
) |
A simple and cost-effective check whether the transition can be invoked.
This check is called when we want to know wheter or not we can invoke the transition, but we have no intention of invoking the transition right now (e.g., when rendering a menu with available transitions).
Implements TransitionGuard.