1 | <?php declare(strict_types=1); |
||
9 | final class ClientConfiguration |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $proto; |
||
13 | /** @var string */ |
||
14 | private $hosts; |
||
15 | /** @var string */ |
||
16 | private $username; |
||
17 | /** @var string */ |
||
18 | private $password; |
||
19 | /** @var array */ |
||
20 | private $options; |
||
21 | /** @var null|string */ |
||
22 | private $authSource; |
||
23 | |||
24 | /** |
||
25 | * ClientConfiguration constructor. |
||
26 | * |
||
27 | * @param string $proto |
||
28 | * @param string $hosts |
||
29 | * @param string $username |
||
30 | * @param string $password |
||
31 | 35 | * @param string|null $authSource |
|
32 | * @param array $options |
||
33 | */ |
||
34 | public function __construct( |
||
49 | |||
50 | 33 | /** |
|
51 | * @return string |
||
52 | */ |
||
53 | public function getProto(): string |
||
57 | |||
58 | 5 | /** |
|
59 | * @return string |
||
60 | */ |
||
61 | public function getHosts(): string |
||
65 | |||
66 | 5 | /** |
|
67 | * @return string |
||
68 | */ |
||
69 | public function getUsername(): string |
||
73 | |||
74 | 28 | /** |
|
75 | * @return string |
||
76 | */ |
||
77 | public function getPassword(): string |
||
81 | |||
82 | 33 | /** |
|
83 | 33 | * @return null|string |
|
84 | */ |
||
85 | 33 | public function getAuthSource() |
|
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | */ |
||
93 | public function getOptions(): array |
||
105 | |||
106 | /** |
||
107 | * @param array $options |
||
108 | * |
||
109 | * @return array |
||
110 | */ |
||
111 | private function cleanOptions(array $options): array |
||
120 | } |
||
121 |