src/TransitionerAwareTrait.php
protected function _setTransitioner($transitioner)
    {
        if ($transitioner !== null && !($transitioner instanceof TransitionerInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid booking transitioner'),
                null,
                null,
                $transitioner
            );
        }

        $this->transitioner = $transitioner;
    }
protected function _setTransitioner($transitioner)
    {
        if ($transitioner !== null && !($transitioner instanceof TransitionerInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid booking transitioner'),
                null,
                null,
                $transitioner
            );
        }

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

@since [*next-version*]

@param TransitionerInterface|null $transitioner The transitioner or null.

@throws InvalidArgumentException If the argument is not valid.
Sets the booking transitioner for this instance .