Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class CheckIndexExistsStage implements StageInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var ElasticsearchServiceContract |
||
19 | */ |
||
20 | private $elasticsearchService; |
||
21 | |||
22 | /** |
||
23 | * CheckIndexExistsStage constructor. |
||
24 | * |
||
25 | * @param ElasticsearchServiceContract $elasticsearchService |
||
26 | */ |
||
27 | public function __construct(ElasticsearchServiceContract $elasticsearchService) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | * |
||
35 | * @throws IndexExistsException |
||
36 | */ |
||
37 | public function __invoke($payload) |
||
50 |