izzum\statemachine\StateMachine::_onCheckCanTransition PHP Метод

_onCheckCanTransition() защищенный Метод

override in subclass if necessary. Before a transition is checked to be possible, you can add domain specific logic here by overriding this method in a subclass. In an overriden implementation of this method you can stop the transition by returning false from this method.
protected _onCheckCanTransition ( Transition $transition ) : boolean
$transition Transition
Результат boolean if false, the transition and it's associated logic will not take place
    protected function _onCheckCanTransition(Transition $transition)
    {
        // eg: dispatch an event and see if it is rejected by a listener
        return true;
    }