Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | class HttpInputSource implements InputSourceInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var string[] |
||
10 | */ |
||
11 | protected array $uris; |
||
12 | |||
13 | protected ?string $username; |
||
14 | |||
15 | /** |
||
16 | * @var null|string|string[] |
||
17 | */ |
||
18 | protected $password; |
||
19 | |||
20 | /** |
||
21 | * HttpInputSource constructor. |
||
22 | * |
||
23 | * @param string[] $uris |
||
24 | * @param string|null $username |
||
25 | * @param null|string|string[] $password |
||
26 | */ |
||
27 | 4 | public function __construct(array $uris, ?string $username = null, $password = null) |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return array<string,string|string[]> |
||
36 | */ |
||
37 | 2 | public function toArray(): array |
|
53 | } |
||
54 | } |