addWeight() публичный Метод

Add a weight to the total
public addWeight ( integer $weight ) : void
$weight integer
Результат void
 /**
  * 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);
     }
 }