| 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 | * User constructor. |
||
| 25 | * @param string|null $email |
||
| 26 | */ |
||
| 27 | public function __construct(string $email = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string|null |
||
| 34 | */ |
||
| 35 | public function getEmail(): ?string |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $email |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setEmail(string $email): self |
||
| 50 | |||
| 51 | /** |
||
| 52 | * A visual identifier that represents this user. |
||
| 53 | * |
||
| 54 | * @see UserInterface |
||
| 55 | */ |
||
| 56 | public function getUsername(): string |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @see UserInterface |
||
| 63 | */ |
||
| 64 | public function getRoles(): array |
||
| 71 | |||
| 72 | public function setRoles(array $roles): self |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @see UserInterface |
||
| 81 | */ |
||
| 82 | public function getPassword() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @see UserInterface |
||
| 89 | */ |
||
| 90 | public function getSalt() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @see UserInterface |
||
| 97 | */ |
||
| 98 | public function eraseCredentials() |
||
| 102 | } |
||
| 103 |