| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ElasticsearchConfig extends AbstractConfig |
||
| 10 | { |
||
| 11 | public const HOST = 'elasticsearch.host'; |
||
| 12 | public const PORT = 'elasticsearch.port'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | 1 | public function getHost(): string |
|
| 18 | { |
||
| 19 | 1 | return $this->get(self::HOST, '127.0.0.1'); |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | 1 | public function getPort(): int |
|
| 28 | } |
||
| 29 | } |