1 | <?php |
||
7 | final class RedisConfig |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $host; |
||
11 | |||
12 | /** @var int */ |
||
13 | private $port; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $protocol; |
||
17 | |||
18 | /** @var int */ |
||
19 | private $dbIndex; |
||
20 | |||
21 | /** @var string|null */ |
||
22 | private $connectionName; |
||
23 | |||
24 | 6 | public function __construct(array $options = []) |
|
40 | |||
41 | 6 | public function getHost(): string |
|
45 | |||
46 | 6 | public function getPort(): int |
|
50 | |||
51 | 6 | public function getProtocol(): string |
|
55 | |||
56 | 6 | public function getDbIndex(): int |
|
60 | |||
61 | 6 | public function getConnectionName(): ?string |
|
65 | } |
||
66 |