| 1 | <?php |
||
| 11 | class User implements UserInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $email; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string[] |
||
| 20 | */ |
||
| 21 | private $roles = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string|null |
||
| 25 | */ |
||
| 26 | public function getEmail(): ?string |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $email |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | public function setEmail(string $email): self |
||
| 41 | |||
| 42 | /** |
||
| 43 | * A visual identifier that represents this user. |
||
| 44 | * |
||
| 45 | * @see UserInterface |
||
| 46 | */ |
||
| 47 | public function getUsername(): string |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @see UserInterface |
||
| 54 | */ |
||
| 55 | public function getRoles(): array |
||
| 62 | |||
| 63 | public function setRoles(array $roles): self |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @see UserInterface |
||
| 72 | */ |
||
| 73 | public function getPassword() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @see UserInterface |
||
| 80 | */ |
||
| 81 | public function getSalt() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @see UserInterface |
||
| 88 | */ |
||
| 89 | public function eraseCredentials() |
||
| 93 | } |
||
| 94 |