| Total Complexity | 6 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 94.12% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class Auth |
||
| 25 | { |
||
| 26 | use Options; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var IdentityInterface Instance of EntityInterface |
||
| 30 | */ |
||
| 31 | protected $identity; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Setup identity |
||
| 35 | * |
||
| 36 | * @param IdentityInterface $identity |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | 3 | public function setIdentity(IdentityInterface $identity): void |
|
| 52 | 3 | } |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Return identity if user agent is correct |
||
| 56 | * |
||
| 57 | * @return IdentityInterface|null |
||
| 58 | */ |
||
| 59 | 9 | public function getIdentity(): ?IdentityInterface |
|
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Clear identity and user agent information |
||
| 74 | * |
||
| 75 | * @return void |
||
| 76 | */ |
||
| 77 | 2 | public function clearIdentity(): void |
|
| 84 |