Total Complexity | 3 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 68.75% |
Changes | 0 |
1 | <?php |
||
10 | class AuthProvider implements AuthProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Xervice\User\Business\Model\Authenticator\UserCredentialProviderInterface |
||
14 | */ |
||
15 | private $credentialProvider; |
||
16 | |||
17 | /** |
||
18 | * @var \Xervice\User\Business\Dependency\Authenticator\Login\LoginInterface[] |
||
19 | */ |
||
20 | private $loginCollection; |
||
21 | |||
22 | /** |
||
23 | * AuthProvider constructor. |
||
24 | * |
||
25 | * @param \Xervice\User\Business\Model\Authenticator\UserCredentialProviderInterface $credentialProvider |
||
26 | * @param \Xervice\User\Business\Dependency\Authenticator\Login\LoginInterface[] $loginCollection |
||
27 | */ |
||
28 | 1 | public function __construct( |
|
29 | UserCredentialProviderInterface $credentialProvider, |
||
30 | array $loginCollection |
||
31 | ) { |
||
32 | 1 | $this->credentialProvider = $credentialProvider; |
|
33 | 1 | $this->loginCollection = $loginCollection; |
|
34 | 1 | } |
|
35 | |||
36 | /** |
||
37 | * @param \DataProvider\UserAuthDataProvider $authDataProvider |
||
38 | * |
||
39 | * @return bool |
||
40 | * @throws \Xervice\User\Business\Exception\UserException |
||
41 | */ |
||
42 | 1 | public function auth(UserAuthDataProvider $authDataProvider): bool |
|
60 | ) |
||
61 | ); |
||
63 | } |