Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class Type implements Query |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $value; |
||
23 | |||
24 | /** |
||
25 | * @param string $value |
||
26 | */ |
||
27 | 2 | public function __construct(string $value = '_doc') |
|
28 | { |
||
29 | 2 | $this->value = $value; |
|
30 | 2 | } |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 1 | public function name(): string |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function compile(): array |
|
47 | ]; |
||
48 | } |
||
50 |