public function getTransitionsByStartingState($stateName)
    {
        return array_filter(
            $this->transitions,
            function (Transition $transition) use ($stateName) {
                return $transition
                    ->getStart()
                    ->getName() === $stateName;
            }
        );
    }
public function getTransitionsByStartingState($stateName)
    {
        return array_filter(
            $this->transitions,
            function (Transition $transition) use ($stateName) {
                return $transition
                    ->getStart()
                    ->getName() === $stateName;
            }
        );
    }
public function getTransitionsByStartingState ( $ stateName ) { return array_filter ( $ this -> transitions , function ( Transition $ transition ) use ( $ stateName ) { return $ transition -> getStart ( ) -> getName ( ) === $ stateName ; } ) ; }
Get transitions given the name of the start state.

@param string $stateName State name

@return array|null Transitions with specific start state
Get transitions given the name of the start state .