| Total Complexity | 1 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | abstract class AbstractOperator extends InputObjectType |
||
| 18 | { |
||
| 19 | 29 | final public function __construct(Types $types, LeafType $leafType) |
|
| 27 | 29 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Return the GraphQL type configuration for an `InputObjectType`. |
||
| 31 | * |
||
| 32 | * This should declare all custom fields needed to apply the filter. In most |
||
| 33 | * cases it would include a field such as `value` or `values`, and possibly other |
||
| 34 | * more specific fields. |
||
| 35 | * |
||
| 36 | * The type name, usually configured with the `name` key, should not be defined and |
||
| 37 | * will be overridden in all cases. This is because we must have a predictable name |
||
| 38 | * that is based only on the class name. |
||
| 39 | * |
||
| 40 | * @param Types $types |
||
| 41 | * @param LeafType $leafType |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | abstract protected function getConfiguration(Types $types, LeafType $leafType): array; |
||
| 46 | } |
||
| 47 |