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(); }
public function contains(\IWord $word) { return array_key_exists($word->getValue(), $this->_words); }