email = $email; } 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 getPersonId(): ?int { return $this->personId; } public function setPersonId(?int $personId): static { $this->personId = $personId; return $this; } public function getAddressId(): ?int { return $this->addressId; } public function setAddressId(?int $addressId): static { $this->addressId = $addressId; return $this; } public function getPassword(): ?string { return base64_decode($this->password); } public function setPassword(?string $password): static { $this->password = base64_encode($password); return $this; } public function getRoles(): array { return ['ROLE_USER', ...$this->roles]; } public function setRoles(array $roles): static { $this->roles = $roles; return $this; } public function getHotelCodes(): array { return $this->hotelCodes; } public function setHotelCodes(array $hotelCodes): static { $this->hotelCodes = $hotelCodes; return $this; } public function getLastLoginAt(): ?\DateTimeImmutable { return $this->lastLoginAt; } public function setLastLoginAt(?\DateTimeImmutable $lastLoginAt): static { $this->lastLoginAt = $lastLoginAt; return $this; } public function isProfileComplete(): bool { return $this->profileComplete; } public function setProfileComplete(bool $profileComplete): static { $this->profileComplete = $profileComplete; return $this; } public function eraseCredentials(): void { } public function getUserIdentifier(): string { return $this->email; } }