public function getNextStates()
    {
        return array_map(
            function(Transition $transition) {
                return $this->states[$transition->getResultingStateName()];
            },
            $this->getNextTransitions()
        );
    }
public function getNextStates()
    {
        return array_map(
            function(Transition $transition) {
                return $this->states[$transition->getResultingStateName()];
            },
            $this->getNextTransitions()
        );
    }
public function getNextStates ( ) { return array_map ( function ( Transition $ transition ) { return $ this -> states [ $ transition -> getResultingStateName ( ) ] ; } , $ this -> getNextTransitions ( ) ) ; }
Get next states
@return array
@throws \Exception
Get next states