| Total Complexity | 6 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class HasParent implements Query |
||
| 19 | { |
||
| 20 | use Traits\IgnoreUnmapped; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $type; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Query |
||
| 29 | */ |
||
| 30 | private $query; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var bool |
||
| 34 | */ |
||
| 35 | private $score; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $type |
||
| 39 | * @param Query $query |
||
| 40 | */ |
||
| 41 | public function __construct(string $type, Query $query) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param bool $value |
||
| 49 | * |
||
| 50 | * @return self |
||
| 51 | */ |
||
| 52 | public function score(bool $value): self |
||
| 53 | { |
||
| 54 | $this->score = $value; |
||
| 55 | |||
| 56 | return $this; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function name(): string |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function compile(): array |
||
| 86 | } |
||
| 87 | } |
||
| 88 |