value = $value; } /** * Returns true if the value of the token is equal to a single space. * * @return bool */ public function isSpace() { return (\preg_match('/^\s+$/', $this->value) === 1); } /** * Returns true if the value is a space. * */ public function ignoreSpacesBefore(): bool { return $this->isSpace(); } /** * Returns true if the value is a space. * */ public function ignoreSpacesAfter(): bool { return $this->isSpace(); } }