| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 8 | final class SomeQueryField implements QueryFieldInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | public function getName(): string |
||
| 15 | { |
||
| 16 | return 'someQueryName'; |
||
| 17 | } |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function getDescription(): string |
||
| 24 | { |
||
| 25 | return 'Some description'; |
||
| 26 | } |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public function getArgs(): array |
||
| 37 | ], |
||
| 38 | ]; |
||
| 39 | } |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getType(): Type |
||
| 46 | { |
||
| 47 | return Type::string(); |
||
| 48 | } |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function resolve(array $root, array $args, $context = null) |
||
| 57 | } |
||
| 58 | |||
| 60 |