Beispiel #1
0
 /**
  * @param  string $text
  * @return bool
  */
 public function containsHashtag($text)
 {
     if ($this->entities && $this->entities->getHashtags()) {
         foreach ($this->entities->getHashtags() as $hashtag) {
             if ($hashtag->getText() == $text) {
                 return true;
             }
         }
     }
     return false;
 }