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