protected function checkTransitions(WorkflowActionInstance $action)
    {
        $transitions = $action->getValidTransitions();
        // if there's JUST ONE transition, then we need should
        // immediately follow it.
        if ($transitions && $transitions->count() == 1) {
            return $transitions->First();
        }
    }
protected function checkTransitions(WorkflowActionInstance $action)
    {
        $transitions = $action->getValidTransitions();
        // if there's JUST ONE transition, then we need should
        // immediately follow it.
        if ($transitions && $transitions->count() == 1) {
            return $transitions->First();
        }
    }
protected function checkTransitions ( WorkflowActionInstance $ action ) { $ transitions = $ action -> getValidTransitions ( ) ; // if there's JUST ONE transition, then we need should // immediately follow it. if ( $ transitions && $ transitions -> count ( ) == 1 ) { return $ transitions -> First ( ) ; } }
Evaluate all the transitions of an action and determine whether we should
follow any of them yet.

@param  WorkflowActionInstance $action
@return WorkflowTransition
Evaluate all the transitions of an action and determine whether we should follow any of them yet .