*/ #[ORM\Column] private array $roles = []; #[ORM\Column] private string $password = ''; #[ORM\Column(length: 50, nullable: true)] private ?string $theme = null; public function getId(): ?int { return $this->id; } public function getEmail(): string { return $this->email; } public function setEmail(string $email): static { $this->email = $email; return $this; } public function getUserIdentifier(): string { return $this->email; } /** @return list */ public function getRoles(): array { $roles = $this->roles; $roles[] = 'ROLE_USER'; return array_unique($roles); } /** @param list $roles */ public function setRoles(array $roles): static { $this->roles = $roles; return $this; } public function getPassword(): string { return $this->password; } public function setPassword(string $password): static { $this->password = $password; return $this; } public function getTheme(): ?string { return $this->theme; } public function setTheme(?string $theme): static { $this->theme = $theme; return $this; } public function eraseCredentials(): void {} }