Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
8 | class Authorization |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $username; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $password; |
||
19 | |||
20 | /** |
||
21 | * Authorization constructor. |
||
22 | * |
||
23 | * @param string $username |
||
24 | * @param string $password |
||
25 | */ |
||
26 | 2 | public function __construct(string $username, string $password) |
|
27 | { |
||
28 | 2 | $this->username = $username; |
|
29 | 2 | $this->password = $password; |
|
30 | 2 | } |
|
31 | |||
32 | /** |
||
33 | * The authorization header will be generated and added as a custom header. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getBasicAuth(): array |
||
41 | ]; |
||
42 | } |
||
44 |