Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class AuthenticationContext |
||
15 | { |
||
16 | |||
17 | private AuthenticationProcess $process; |
||
18 | |||
19 | /** |
||
20 | * Set authentication process to use |
||
21 | */ |
||
22 | public function setAuthProcess(AuthenticationProcess $process): static |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Authenticate request with authentication process strategy |
||
30 | * @param IInput $input |
||
31 | * @throws Exceptions\RequestTimeoutException |
||
32 | * @throws Exceptions\AuthenticationException |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function authenticate(IInput $input): bool |
||
40 |