Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] |
||
14 | final class Filter implements ApiAttribute |
||
15 | { |
||
16 | /** |
||
17 | * @param string $field Name of the field on which to apply the operator. |
||
18 | * |
||
19 | * The field may or may not actually exist in the entity. It is merely used |
||
20 | * to organize the filter correctly in the API. |
||
21 | * @param class-string<AbstractOperator> $operator FQCN to the PHP class implementing the GraphQL operator |
||
22 | * @param string $type GraphQL leaf type name of the type of the field |
||
23 | */ |
||
24 | 18 | public function __construct( |
|
31 |