public function addWeight($weight) { $this->weight += $weight; if ($this->parentMatcher !== null) { $this->parentMatcher->addWeight($weight); } }
/** * Add a weight to the total * * @param integer $weight * @return void */ public function addWeight($weight) { $this->weight += $weight; if ($this->parentMatcher !== null) { $this->parentMatcher->addWeight($weight); } }