Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class Search |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $index; |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $body; |
||
18 | |||
19 | /** |
||
20 | * @param string $index |
||
21 | * @param array $body |
||
22 | */ |
||
23 | 7 | public function __construct(string $index, array $body) |
|
27 | 7 | } |
|
28 | |||
29 | 7 | public function toArray(): array |
|
37 |