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