| Total Complexity | 5 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class NestedQuery extends QueryAbstract |
||
| 15 | { |
||
| 16 | use AccessorTrait; |
||
| 17 | |||
| 18 | const NAME = 'nested'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $path; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Query |
||
| 27 | */ |
||
| 28 | private $query; |
||
| 29 | |||
| 30 | protected function get_query(): Query |
||
| 33 | } |
||
| 34 | |||
| 35 | public function __construct(string $path) |
||
| 36 | { |
||
| 37 | $this->path = $path; |
||
| 38 | $this->query = new Query(); |
||
|
|
|||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param null|string $score_mode |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function score_mode(?string $score_mode) |
||
| 47 | { |
||
| 48 | $this->options[__FUNCTION__] = $score_mode; |
||
| 49 | |||
| 50 | return $this; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param bool $ignore_unmapped |
||
| 55 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function ignore_unmapped(bool $ignore_unmapped) |
||
| 59 | { |
||
| 60 | $this->options[__FUNCTION__] = $ignore_unmapped; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritdoc |
||
| 67 | */ |
||
| 68 | public function jsonSerialize() |
||
| 75 | } |
||
| 76 | } |
||
| 77 |