Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class Failure implements FailureInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var \Phauthentic\Authentication\Authenticator\AuthenticatorInterface |
||
23 | */ |
||
24 | protected AuthenticatorInterface $authenticator; |
||
25 | |||
26 | /** |
||
27 | * @var \Phauthentic\Authentication\Authenticator\ResultInterface |
||
28 | */ |
||
29 | protected ResultInterface $result; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param \Phauthentic\Authentication\Authenticator\AuthenticatorInterface $authenticator Authenticator. |
||
35 | * @param \Phauthentic\Authentication\Authenticator\ResultInterface $result Result. |
||
36 | */ |
||
37 | 5 | public function __construct(AuthenticatorInterface $authenticator, ResultInterface $result) |
|
38 | { |
||
39 | 5 | $this->authenticator = $authenticator; |
|
40 | 5 | $this->result = $result; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 3 | public function getAuthenticator(): AuthenticatorInterface |
|
47 | { |
||
48 | 3 | return $this->authenticator; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | 3 | public function getResult(): ResultInterface |
|
57 | } |
||
58 | } |
||
59 |