public function addTransition(callable $transitionBuilderCallable)
    {
        $transitionBuilder = new TransitionBuilder();
        call_user_func($transitionBuilderCallable, $transitionBuilder);
        $transition = $transitionBuilder->getTransition();

        $this->transitions[$transition->getInitialStateName()][$transition->getName()] = $transition;
        return $this;
    }
public function addTransition(callable $transitionBuilderCallable)
    {
        $transitionBuilder = new TransitionBuilder();
        call_user_func($transitionBuilderCallable, $transitionBuilder);
        $transition = $transitionBuilder->getTransition();

        $this->transitions[$transition->getInitialStateName()][$transition->getName()] = $transition;
        return $this;
    }
public function addTransition ( callable $ transitionBuilderCallable ) { $ transitionBuilder = new TransitionBuilder ( ) ; call_user_func ( $ transitionBuilderCallable , $ transitionBuilder ) ; $ transition = $ transitionBuilder -> getTransition ( ) ; $ this -> transitions [ $ transition -> getInitialStateName ( ) ] [ $ transition -> getName ( ) ] = $ transition ; return $ this ; }
Add new transition
@param callable $transitionBuilderCallable
@return MachineBuilder
Add new transition