Conditions | 2 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function filterParameter($rootAlias, $rootClass, $relationsAndFieldName, $type): string |
||
20 | { |
||
21 | $alias = $rootAlias; |
||
22 | $field = $relationsAndFieldName[0]; |
||
23 | |||
24 | $this->validateFieldNames($field, $rootClass); |
||
25 | |||
26 | $this->fieldType = $type ?: $this->getFieldTypeFromAnnotation($field, $rootClass); |
||
27 | |||
28 | return $this->createParameterName($alias, $field); |
||
29 | } |
||
46 |