Total Complexity | 6 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ElasticsearchCheck extends AbstractCheck |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var Client |
||
13 | */ |
||
14 | protected $client; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $indices; |
||
20 | |||
21 | /** |
||
22 | * Constructor |
||
23 | * |
||
24 | * @param string $label |
||
25 | * @param Client $client |
||
26 | * @param array $indices Indices to check for |
||
27 | */ |
||
28 | public function __construct(string $label, Client $client, array $indices = []) |
||
29 | { |
||
30 | parent::__construct($label); |
||
31 | $this->client = $client; |
||
32 | $this->indices = $indices; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Check callback |
||
37 | * |
||
38 | * @return Result |
||
39 | */ |
||
40 | public function checkStatus(): Result |
||
57 | } |
||
58 | } |
||
59 |