public function addWeight($weight)
    {
        $this->weight += $weight;
        if ($this->parentMatcher !== null) {
            $this->parentMatcher->addWeight($weight);
        }
    }
public function addWeight($weight)
    {
        $this->weight += $weight;
        if ($this->parentMatcher !== null) {
            $this->parentMatcher->addWeight($weight);
        }
    }
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
Add a weight to the total