Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class ApiUser implements UserInterface |
||
10 | { |
||
11 | private const DEFAULT_ROLES = ['ROLE_API']; |
||
12 | |||
13 | private $username; |
||
14 | private $roles; |
||
15 | |||
16 | public function __construct(string $username, array $roles = self::DEFAULT_ROLES) |
||
17 | { |
||
18 | $this->username = $username; |
||
19 | $this->roles = $roles; |
||
20 | } |
||
21 | |||
22 | public function getUsername() |
||
23 | { |
||
24 | return $this->username; |
||
25 | } |
||
26 | |||
27 | public function getRoles(): array |
||
30 | } |
||
31 | |||
32 | public function getPassword(): string |
||
33 | { |
||
34 | return ''; |
||
35 | } |
||
36 | |||
37 | public function getSalt(): string |
||
40 | } |
||
41 | |||
42 | public function eraseCredentials(): void |
||
44 | } |
||
45 | } |
||
46 |