Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class TermsFilter implements QueryInterface |
||
15 | { |
||
16 | private array $query; |
||
17 | |||
18 | /** @param array $terms */ |
||
19 | public static function fromNative($terms): QueryInterface |
||
23 | } |
||
24 | |||
25 | public function toNative(): array |
||
26 | { |
||
27 | return $this->query; |
||
28 | } |
||
29 | |||
30 | private function __construct(array $terms = []) |
||
44 | ] |
||
45 | ] |
||
49 |