src/TokenizerAwareTrait.php
protected function _setTokenizer($tokenizer)
    {
        if ($tokenizer !== null && !($tokenizer instanceof TokenizerInterface)) {
            throw $this->_createInvalidArgumentException($this->__('Invalid tokenizer'), null, null, $tokenizer);
        }

        $this->tokenizer = $tokenizer;
    }
protected function _setTokenizer($tokenizer)
    {
        if ($tokenizer !== null && !($tokenizer instanceof TokenizerInterface)) {
            throw $this->_createInvalidArgumentException($this->__('Invalid tokenizer'), null, null, $tokenizer);
        }

        $this->tokenizer = $tokenizer;
    }
protected function _setTokenizer ( $ tokenizer ) { if ( $ tokenizer !== null && ! ( $ tokenizer instanceof TokenizerInterface ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid tokenizer' ) , null , null , $ tokenizer ) ; } $ this -> tokenizer = $ tokenizer ; }
Assigns a tokenizer to this instance.

@since [*next-version*]

@param TokenizerInterface|null $tokenizer The tokenizer.
Assigns a tokenizer to this instance .