Total Complexity | 3 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ReIndexStage implements StageInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var ElasticsearchServiceContract |
||
17 | */ |
||
18 | private $elasticsearchService; |
||
19 | |||
20 | /** |
||
21 | * CheckIndexExistsStage constructor. |
||
22 | * |
||
23 | * @param ElasticsearchServiceContract $elasticsearchService |
||
24 | */ |
||
25 | public function __construct(ElasticsearchServiceContract $elasticsearchService) |
||
26 | { |
||
27 | $this->elasticsearchService = $elasticsearchService; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function __invoke($payload) |
||
60 | } |
||
61 | } |
||
62 |