public function setIpThresholds($ipThresholds) { $this->ipThresholds = is_array($ipThresholds) ? $ipThresholds : (int) $ipThresholds; }