| Total Complexity | 6 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class AccountsCerts extends Accounts implements Interfaces\IAuthCert |
||
| 15 | { |
||
| 16 | /** @var Interfaces\IUserCert[] */ |
||
| 17 | protected $local = []; |
||
| 18 | |||
| 19 | 1 | public function updateCertData(string $userName, ?string $certKey, ?string $certSalt): bool |
|
| 20 | { |
||
| 21 | 1 | foreach ($this->local as $item) { |
|
| 22 | 1 | if ($item->getAuthName() == $userName) { |
|
| 23 | 1 | $item->updateCertInfo($certKey, $certSalt); |
|
| 24 | 1 | return true; |
|
| 25 | } |
||
| 26 | } |
||
| 27 | 1 | return false; |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | public function getCertData(string $userName): ?Interfaces\ICert |
|
| 34 | } |
||
| 35 | } |
||
| 36 |