Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class AuthProvider implements AuthProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Xervice\User\Business\Authenticator\UserCredentialProviderInterface |
||
14 | */ |
||
15 | private $credentialProvider; |
||
16 | |||
17 | /** |
||
18 | * @var \Xervice\User\Business\Authenticator\Login\LoginInterface[] |
||
19 | */ |
||
20 | private $loginCollection; |
||
21 | |||
22 | /** |
||
23 | * AuthProvider constructor. |
||
24 | * |
||
25 | * @param \Xervice\User\Business\Authenticator\UserCredentialProviderInterface $credentialProvider |
||
26 | * @param \Xervice\User\Business\Authenticator\Login\LoginInterface[] $loginCollection |
||
27 | */ |
||
28 | public function __construct( |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $type |
||
38 | * @param \DataProvider\UserAuthDataProvider $authDataProvider |
||
39 | * |
||
40 | * @return bool |
||
41 | * @throws \Xervice\User\Business\Exception\UserException |
||
42 | */ |
||
43 | public function auth(UserAuthDataProvider $authDataProvider): bool |
||
64 | } |