示例#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);
 }