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;
    }