id; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): static { $this->email = $email; return $this; } public function getPseudo(): ?string { return $this->pseudo; } public function setPseudo(string $pseudo): static { $this->pseudo = $pseudo; return $this; } public function getPassword(): ?string { return $this->password; } public function setPassword(string $password): static { $this->password = $password; return $this; } public function getFirstName(): ?string { return $this->firstName; } public function setFirstName(string $firstName): static { $this->firstName = $firstName; return $this; } public function getLastName(): ?string { return $this->lastName; } public function setLastName(string $lastName): static { $this->lastName = $lastName; return $this; } public function getSalt(): ?string { return null; } public function getRoles(): array { $roles = $this->roles; if (empty($roles)) { $roles[] = 'ROLE_USER'; } return $roles; } public function eraseCredentials(): void { } public function getUserIdentifier(): string { return $this->email; // Ou $this->pseudo si tu préfères utiliser le pseudo } }