try_times += $num; } public function checkTryTimes(): bool { if($this->try_times >= self::TRY_LIMIT) { return false; } return true; } }