| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class UserAuth implements AuthenticationMethodInterface |
||
| 15 | { |
||
| 16 | private string $authUrl = '/login'; |
||
| 17 | private User $user; |
||
| 18 | private ResponseFactoryInterface $responseFactory; |
||
| 19 | |||
| 20 | 5 | public function __construct(User $user, ResponseFactoryInterface $responseFactory) |
|
| 24 | 5 | } |
|
| 25 | |||
| 26 | 2 | public function authenticate(ServerRequestInterface $request): ?IdentityInterface |
|
| 33 | } |
||
| 34 | |||
| 35 | 2 | public function challenge(ResponseInterface $response): ResponseInterface |
|
| 38 | } |
||
| 39 | |||
| 40 | 2 | public function withAuthUrl(string $url): self |
|
| 47 |