Finite\StateMachine\StateMachine::getTransition PHP Method

getTransition() public method

public getTransition ( $name )
    public function getTransition($name)
    {
        if (!isset($this->transitions[$name])) {
            throw new Exception\TransitionException(sprintf('Unable to find a transition called "%s" on object "%s" with graph "%s".', $name, get_class($this->getObject()), $this->getGraph()));
        }
        return $this->transitions[$name];
    }