1 | <?php |
||
22 | final class UserAccount implements UserAccountInterface, SymfonyUserInterface, EquatableInterface |
||
23 | { |
||
24 | private $username; |
||
25 | |||
26 | /** |
||
27 | * @var string[] |
||
28 | */ |
||
29 | private $roles; |
||
30 | |||
31 | private $lastLoginAt; |
||
32 | |||
33 | private $lastUpdateAt; |
||
34 | |||
35 | private $userAccountId; |
||
36 | |||
37 | private $data = []; |
||
38 | |||
39 | public function __construct(UserAccountId $userAccountId, string $username, array $roles, ?\DateTimeImmutable $lastLoginAt, ?\DateTimeImmutable $lastUpdateAt, array $data) |
||
48 | |||
49 | public function getUserAccountId(): UserAccountId |
||
53 | |||
54 | public function getPublicId(): ResourceOwnerId |
||
58 | |||
59 | public function has(string $key): bool |
||
63 | |||
64 | public function get(string $key) |
||
72 | |||
73 | public function getLastLoginAt(): ?int |
||
77 | |||
78 | public function getLastUpdateAt(): ?int |
||
82 | |||
83 | public function getRoles(): array |
||
87 | |||
88 | public function getSalt() |
||
92 | |||
93 | public function getUsername(): string |
||
97 | |||
98 | public function getPassword(): string |
||
102 | |||
103 | public function eraseCredentials() |
||
106 | |||
107 | public function isEqualTo(SymfonyUserInterface $user) |
||
119 | } |
||
120 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.