id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): static { $this->user = $user; return $this; } public function getMemberCase(): ?MemberCase { return $this->memberCase; } public function setMemberCase(?MemberCase $memberCase): static { $this->memberCase = $memberCase; return $this; } public static function checkLevel(User $user, MemberCase $case): bool { return ($user->getLevel()->value >= $case->getLevel()->value); } }