src/TransitionListAwareTrait.php
protected function _addTransition($transition)
    {
        if (!is_string($transition) && !($transition instanceof Stringable)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid transition.'),
                null,
                null,
                $transition
            );
        }

        $this->transitions[(string) $transition] = $transition;
    }
protected function _addTransition($transition)
    {
        if (!is_string($transition) && !($transition instanceof Stringable)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid transition.'),
                null,
                null,
                $transition
            );
        }

        $this->transitions[(string) $transition] = $transition;
    }
protected function _addTransition ( $ transition ) { if ( ! is_string ( $ transition ) && ! ( $ transition instanceof Stringable ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Argument is not a valid transition.' ) , null , null , $ transition ) ; } $ this -> transitions [ ( string ) $ transition ] = $ transition ; }
Adds a transition to this instance.

@since [*next-version*]

@param string|Stringable $transition The transition to add.
Adds a transition to this instance .