| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class SquaringService extends AbstractObjectField implements QueryFieldInterface, ResolveAwareInterface |
||
| 15 | { |
||
| 16 | protected string $name = 'square'; |
||
| 17 | protected string $type = 'Int'; |
||
| 18 | protected int $mode = TypeAwareInterface::IS_REQUIRED; |
||
| 19 | |||
| 20 | public function getArguments(): iterable |
||
| 21 | { |
||
| 22 | yield new Argument(name: 'num', type: 'Int', mode: TypeAwareInterface::IS_REQUIRED); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function resolve(mixed $objectValue, array $args, mixed $context, Webonyx\ResolveInfo $info): mixed |
||
| 28 | } |
||
| 29 | } |
||
| 30 |