owner; } public function setOwner(?User $owner): static { $this->owner = $owner; return $this; } public function isOwnedBy(User $user): bool { return $this->getOwner()?->getId() === $user->getId(); } }