public static function srSoftCapReached($term) { $softCap = LotteryProcess::getSrSoftCap(); $assigned = LotteryProcess::countLotteryAssignedByClassGender($term, CLASS_SENIOR); if ($assigned >= $softCap) { return true; } return false; }