userLevel = $level; } /** * Determine which level this function is running at. * * @return int */ public function getUserLevel(): int { return $this->userLevel; } /** * Determine if the current user level is set to a specific level. * * @param int $level * @return bool */ public function isUserLevel(int $level): bool { return $this->getUserLevel() === $level; } }