+ return in_array($text, $this->tokens);
+ }
+
+ public function hasTokenThatContains($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::contains($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function hasTokenThatEndsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::endsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function hasTokenThatStartsOrEndsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::startsWith($token, $text) || Str::endsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function hasTokenThatStartsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::startsWith($token, $text)) {
+ return true;
+ }