private function compileTransitions(array $configuration)
    {
        $transitionChain = TransitionChain::create();

        foreach ($configuration as $transitionConfiguration) {
            list(
                $startStateName,
                $transitionName,
                $finalStateName
                ) = $transitionConfiguration;

            $startState = new State($startStateName);
            $finalState = new State($finalStateName);
            $transition = new Transition(
                $transitionName,
                $startState,
                $finalState
            );

            $transitionChain->addTransition($transition);
        }

        return $transitionChain;
    }
private function compileTransitions(array $configuration)
    {
        $transitionChain = TransitionChain::create();

        foreach ($configuration as $transitionConfiguration) {
            list(
                $startStateName,
                $transitionName,
                $finalStateName
                ) = $transitionConfiguration;

            $startState = new State($startStateName);
            $finalState = new State($finalStateName);
            $transition = new Transition(
                $transitionName,
                $startState,
                $finalState
            );

            $transitionChain->addTransition($transition);
        }

        return $transitionChain;
    }
private function compileTransitions ( array $ configuration ) { $ transitionChain = TransitionChain :: create ( ) ; foreach ( $ configuration as $ transitionConfiguration ) { list ( $ startStateName , $ transitionName , $ finalStateName ) = $ transitionConfiguration ; $ startState = new State ( $ startStateName ) ; $ finalState = new State ( $ finalStateName ) ; $ transition = new Transition ( $ transitionName , $ startState , $ finalState ) ; $ transitionChain -> addTransition ( $ transition ) ; } return $ transitionChain ; }
Compile transitions and return structure compiled.

@param array $configuration Configuration

@return TransitionChain Transition chain compiled
Compile transitions and return structure compiled .