| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __construct(string $typeName, string $fieldName, ScalarType|ListOfType $type) |
||
| 16 | { |
||
| 17 | $fields = [ |
||
| 18 | 'from' => new InputObjectField([ |
||
| 19 | 'name' => 'from', |
||
| 20 | 'type' => $type, |
||
| 21 | 'description' => 'Low value of between', |
||
| 22 | ]), |
||
| 23 | 'to' => new InputObjectField([ |
||
| 24 | 'name' => 'to', |
||
| 25 | 'type' => $type, |
||
| 26 | 'description' => 'High value of between', |
||
| 27 | ]), |
||
| 28 | ]; |
||
| 29 | |||
| 30 | parent::__construct([ |
||
| 31 | 'name' => $typeName |
||
| 32 | . '_' . $fieldName |
||
| 33 | . '_filters_' |
||
| 34 | . FiltersDef::BETWEEN |
||
| 35 | . '_fields', |
||
| 36 | 'description' => 'Between `from` and `to`', |
||
| 37 | 'fields' => static fn () => $fields, |
||
| 38 | ]); |
||
| 41 |