public function getNextStates()
    {
        return array_map(
            function(Transition $transition) {
                return $this->states[$transition->getResultingStateName()];
            },
            $this->getNextTransitions()
        );
    }