Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
8 | final class SomeMutationField implements MutationFieldInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | public function getName(): string |
||
15 | { |
||
16 | return 'someMutationName'; |
||
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 |
||
33 | { |
||
34 | return [ |
||
35 | 'someArg' => [ |
||
36 | 'type' => Type::string(), |
||
37 | ], |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function getType(): Type |
||
48 | } |
||
49 | |||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function resolve(array $root, array $args, $context = null) |
||
57 | } |
||
58 | |||
59 | } |
||
60 |