public function setWeights(array $weights) { foreach ($weights as $weight) { if (!is_int($weight)) { throw new \InvalidArgumentException('Weight must be an integer.'); } } $this->weights = $weights; return $this; }
/** * {@inheritdoc} */ public function setWeights(array $weights) { return $this->proxy->setWeights($weights); }