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

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

        $this->transition = $transition;
    }
protected function _setTransition ( $ transition ) { if ( $ transition !== null && ! is_string ( $ transition ) && ! ( $ transition instanceof Stringable ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Argument is not a valid transition' ) , null , null , $ transition ) ; } $ this -> transition = $ transition ; }
Sets the transition for this instance.

@since [*next-version*]

@param string|Stringable|null $transition The transition, or null.
Sets the transition for this instance .