*/ public function tokenize(string $text) : array { $tokens = []; preg_match_all(self::WORD_REGEX, $text, $tokens); return $tokens[0]; } /** * Return the string representation of the object. * * @internal * * @return string */ public function __toString() : string { return 'Word'; } }