domain; } public function setDomain(?Domain $domain): static { $this->domain = $domain; return $this; } public function getEntity(): ?Entity { return $this->entity; } public function setEntity(?Entity $entity): static { $this->entity = $entity; return $this; } /** * @return DomainRole[] */ public function getRoles(): array { return $this->roles; } public function setRoles(array $roles): static { $this->roles = $roles; return $this; } public function getDeletedAt(): ?\DateTimeImmutable { return $this->deletedAt; } public function setDeletedAt(?\DateTimeImmutable $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } }