username; } public function getPassword(): string { return $this->password; } public function setPasswordHash(string $hash): void { $this->password = $hash; } public function getRoles(): array { return $this->roles; } public function eraseCredentials(): void { } public function isEqualTo(UserInterface $user): bool { return $user instanceof self && $this->id === $user->id && $this->username === $user->username && hash_equals($this->password, $user->password) && $this->roles === $user->roles; } }