id; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): static { $this->email = $email; return $this; } /** * A visual identifier that represents this user. * * @see UserInterface */ public function getUserIdentifier(): string { return (string) $this->email; } /** * @see UserInterface */ public function getRoles(): array { $roles = $this->roles; $grade = $this->grade; $roles[] = "ROLE_" . (string)$grade; return array_unique($roles); } public function setRoles(array $roles): static { $this->roles = $roles; return $this; } /** * @see PasswordAuthenticatedUserInterface */ public function getPassword(): string { return $this->password; } public function setPassword(string $password): static { $this->password = $password; return $this; } public function setPlainPassword(string $password): static { $this->plainPassword = $password; return $this; } public function getPlainPassword(): ?string { return $this->plainPassword; } /** * @see UserInterface */ public function eraseCredentials(): void { // If you store any temporary, sensitive data on the user, clear it here // $this->plainPassword = null; } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getFullname(): ?string { return $this->fullname; } public function setFullname(string $fullname): static { $this->fullname = $fullname; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(?string $address): static { $this->address = $address; return $this; } public function getIdResto(): ?int { return $this->id_resto; } public function setIdResto(?int $id_resto): static { $this->id_resto = $id_resto; return $this; } public function getGrade(): ?string { return $this->grade; } public function setGrade(?string $grade): static { $this->grade = $grade; return $this; } }