1 | <?php |
||
5 | class User implements UserInterface |
||
6 | { |
||
7 | /** @var string */ |
||
8 | private $username; |
||
9 | |||
10 | /** @var string */ |
||
11 | private $password; |
||
12 | |||
13 | /** @var string */ |
||
14 | private $displayName; |
||
15 | |||
16 | /** |
||
17 | * @param string $username |
||
18 | * @param string $password |
||
19 | * @param string $displayName |
||
20 | */ |
||
21 | public function __construct($username, $password, $displayName) |
||
27 | |||
28 | /** |
||
29 | * {@inheritDoc} |
||
30 | */ |
||
31 | public function getRoles() |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function getPassword() |
||
43 | |||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | public function getSalt() |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function getUsername() |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function eraseCredentials() |
||
67 | |||
68 | /** |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | public function getDisplayName() |
||
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | public function __toString() |
||
83 | } |
||
84 |