| 1 | <?php declare(strict_types = 1); |
||
| 9 | final class ClientConfiguration |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $hosts; |
||
| 13 | /** @var string */ |
||
| 14 | private $username; |
||
| 15 | /** @var string */ |
||
| 16 | private $password; |
||
| 17 | /** @var array */ |
||
| 18 | private $options; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * ClientConfiguration constructor. |
||
| 22 | * |
||
| 23 | * @param string $hosts |
||
| 24 | * @param string $username |
||
| 25 | * @param string $password |
||
| 26 | * @param array $options |
||
| 27 | */ |
||
| 28 | 17 | public function __construct( |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 17 | public function getHosts(): string |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 5 | public function getUsername(): string |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 5 | public function getPassword(): string |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | 17 | public function getOptions(): array |
|
| 79 | |||
| 80 | /** |
||
| 81 | * @param array $options |
||
| 82 | * |
||
| 83 | * @return array |
||
| 84 | */ |
||
| 85 | 17 | private function cleanOptions(array $options): array |
|
| 94 | } |
||
| 95 |