delimiter = $delimiter; } /** * Tokenize a blob of text. * * @internal * * @param string $text * @return list */ public function tokenize(string $text) : array { return explode($this->delimiter, $text); } /** * Return the string representation of the object. * * @internal * * @return string */ public function __toString() : string { return "Whitespace (delimiter: {$this->delimiter})"; } }