Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class IndexBuilder implements IndexBuilderInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var \Elastica\Client |
||
16 | */ |
||
17 | private $client; |
||
18 | |||
19 | /** |
||
20 | * IndexBuilder constructor. |
||
21 | * |
||
22 | * @param \Elastica\Client $client |
||
23 | */ |
||
24 | 4 | public function __construct(Client $client) |
|
25 | { |
||
26 | 4 | $this->client = $client; |
|
27 | 4 | } |
|
28 | |||
29 | /** |
||
30 | * @param \DataProvider\IndexDataProvider $indexDataProvider |
||
31 | */ |
||
32 | 3 | public function createIndex(IndexDataProvider $indexDataProvider): void |
|
42 | 3 | } |
|
43 | |||
44 | /** |
||
45 | * @param \Elastica\Index $index |
||
46 | * @param \DataProvider\TypeDataProvider[] $types |
||
47 | */ |
||
48 | 3 | protected function createTypes(Index $index, array $types): void |
|
61 | } |