Пример #1
0
 public function combineParams(\IWord $word)
 {
     if ($this->_value != $word->getValue()) {
         // exception must be here
         return;
     }
     $this->_count += $word->getCount();
     $this->_totalBroadSearches += $word->getBroadSearches();
     $this->_totalExactSearches += $word->getExactSearches();
 }
Пример #2
0
 public function contains(\IWord $word)
 {
     return array_key_exists($word->getValue(), $this->_words);
 }