src/Tokenizer/TokenizerRegistry.php
public function tokenize($string)
    {
        if (! $string instanceof TokenRegistry) {
            $wt = new WordToken($string);
            $string = new TokenRegistry();
            $string->add($wt);
        }
        foreach ($this as $tokenizer) {
            $string = $tokenizer->run($string);
        }

        return $string;
    }
public function tokenize($string)
    {
        if (! $string instanceof TokenRegistry) {
            $wt = new WordToken($string);
            $string = new TokenRegistry();
            $string->add($wt);
        }
        foreach ($this as $tokenizer) {
            $string = $tokenizer->run($string);
        }

        return $string;
    }
Pass the given string through the given tokenizers

@param string $string The String to be tokenized

@return \Org\Heigl\Hyphenator\TokenRegistry