1 | <?php declare(strict_types=1); |
||
9 | final class ClientConfiguration |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $uri; |
||
13 | /** @var string */ |
||
14 | private $username; |
||
15 | /** @var string */ |
||
16 | private $password; |
||
17 | /** @var array */ |
||
18 | private $options; |
||
19 | /** @var null|string */ |
||
20 | private $authSource; |
||
21 | |||
22 | /** |
||
23 | * ClientConfiguration constructor. |
||
24 | * |
||
25 | * @param string $uri |
||
26 | * @param string $username |
||
27 | * @param string $password |
||
28 | * @param string|null $authSource |
||
29 | * @param array $options |
||
30 | */ |
||
31 | 36 | public function __construct( |
|
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 34 | public function getUri(): string |
|
49 | { |
||
50 | 34 | return $this->uri; |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | 5 | public function getUsername(): string |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 5 | public function getPassword(): string |
|
68 | |||
69 | /** |
||
70 | * @return null|string |
||
71 | */ |
||
72 | 29 | public function getAuthSource() |
|
76 | |||
77 | /** |
||
78 | * @return array |
||
79 | */ |
||
80 | 34 | public function getOptions(): array |
|
92 | |||
93 | /** |
||
94 | * @param array $options |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | 34 | private function cleanOptions(array $options): array |
|
107 | } |
||
108 |