public function addTokenizer($tokenizer)
    {
        if (! $tokenizer instanceof \Org\Heigl\Hyphenator\Tokenizer\Tokenizer) {
            $tokenizer = '\\Org\\Heigl\Hyphenator\\Tokenizer\\' . ucfirst($tokenizer) . 'Tokenizer';
            $tokenizer = new $tokenizer();
        }
        $this->tokenizers->add($tokenizer);

        return $this;
    }
public function addTokenizer($tokenizer)
    {
        if (! $tokenizer instanceof \Org\Heigl\Hyphenator\Tokenizer\Tokenizer) {
            $tokenizer = '\\Org\\Heigl\Hyphenator\\Tokenizer\\' . ucfirst($tokenizer) . 'Tokenizer';
            $tokenizer = new $tokenizer();
        }
        $this->tokenizers->add($tokenizer);

        return $this;
    }
public function addTokenizer ( $ tokenizer ) { if ( ! $ tokenizer instanceof \ Org \ Heigl \ Hyphenator \ Tokenizer \ Tokenizer ) { $ tokenizer = '\\Org\\Heigl\Hyphenator\\Tokenizer\\' . ucfirst ( $ tokenizer ) . 'Tokenizer' ; $ tokenizer = new $ tokenizer ( ) ; } $ this -> tokenizers -> add ( $ tokenizer ) ; return $ this ; }
Add a tokenizer to the tokenizer-registry

@param Tokenizer\Tokenizer|string $tokenizer The tokenizer to add

@return Hyphenator
Add a tokenizer to the tokenizer - registry