Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | trait TAuthBasic |
||
12 | { |
||
13 | use TAuth; |
||
14 | |||
15 | protected string $username = ''; |
||
16 | protected string $password = ''; |
||
17 | |||
18 | 1 | public function setCredentials(string $username, string $password = ''): void |
|
22 | } |
||
23 | |||
24 | 1 | protected function authType(): string |
|
25 | { |
||
26 | 1 | return 'Basic'; |
|
27 | } |
||
28 | |||
29 | 1 | protected function authKey(): string |
|
34 | 1 | )); |
|
35 | } |
||
37 |