public function setPoints($points) { if (!is_int($points)) { throw new \InvalidArgumentException("Points must be an integer: '{$points}'"); } $this->points = $points < 0 ? 0 : $points; return $this; }
public function setPoints($points) { $this->__load(); return parent::setPoints($points); }