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