Total Complexity | 7 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 86.67% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class CasUserProvider implements CasUserProviderInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 2 | public function loadUserByResponse(ResponseInterface $response): CasUserInterface |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $username |
||
39 | * |
||
40 | * @return UserInterface |
||
41 | */ |
||
42 | 1 | public function loadUserByUsername($username) |
|
43 | { |
||
44 | 1 | throw new UnsupportedUserException(sprintf('Username "%s" does not exist.', $username)); |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function refreshUser(UserInterface $user) |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @param string $class |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | 1 | public function supportsClass($class) |
|
69 |