Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | <?php |
||
14 | abstract class AbstractOperator extends InputObjectType |
||
15 | { |
||
16 | 6 | public function __construct(LeafType $type) |
|
17 | { |
||
18 | 6 | parent::__construct($this->getSingleValueConfiguration($type)); |
|
19 | 6 | } |
|
20 | |||
21 | 6 | public function getFieldName(): string |
|
27 | } |
||
28 | |||
29 | 6 | protected function getSingleValueConfiguration(LeafType $type): array |
|
30 | { |
||
31 | return [ |
||
32 | 6 | 'name' => Utils::getOperatorTypeName(get_class($this), $type), |
|
33 | 'fields' => [ |
||
34 | 6 | 'value' => Type::nonNull($type), |
|
35 | ], |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, QueryBuilder $queryBuilder, string $alias, string $field, array $config): string |
||
42 | } |
||
43 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.