Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class Indexer implements IndexerInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var \Xervice\Elasticsearch\Business\Collection\IndexCollection |
||
16 | */ |
||
17 | private $indexCollection; |
||
18 | |||
19 | /** |
||
20 | * @var \Xervice\Elasticsearch\Business\Model\Index\IndexBuilderInterface |
||
21 | */ |
||
22 | private $indexBuilder; |
||
23 | |||
24 | /** |
||
25 | * @var \Xervice\Elasticsearch\Business\Model\Index\MappingConverterInterface |
||
26 | */ |
||
27 | private $mappingConverter; |
||
28 | |||
29 | /** |
||
30 | * Indexer constructor. |
||
31 | * |
||
32 | * @param \Xervice\Elasticsearch\Business\Collection\IndexCollection $indexCollection |
||
33 | * @param \Xervice\Elasticsearch\Business\Model\Index\IndexBuilderInterface $indexBuilder |
||
34 | */ |
||
35 | 4 | public function __construct( |
|
36 | IndexCollection $indexCollection, |
||
37 | IndexBuilderInterface $indexBuilder, |
||
38 | MappingConverterInterface $mappingConverter |
||
39 | ) { |
||
40 | 4 | $this->indexCollection = $indexCollection; |
|
41 | 4 | $this->indexBuilder = $indexBuilder; |
|
42 | 4 | $this->mappingConverter = $mappingConverter; |
|
43 | 4 | } |
|
44 | |||
45 | 4 | public function createIndizes(): void |
|
51 | ); |
||
52 | } |
||
55 |