Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class RegistrationRequest extends AbstractInputObjectType implements ParseValueAwareInterface |
||
13 | { |
||
14 | protected string $name = 'RegistrationRequest'; |
||
15 | |||
16 | protected iterable $fields = [ |
||
17 | 'lastname' => 'String', |
||
18 | 'firstname' => [ |
||
19 | 'type' => StringType::class, |
||
20 | 'mode' => TypeAwareInterface::IS_REQUIRED, |
||
21 | ], |
||
22 | 'middlename' => [ |
||
23 | 'type' => 'String', |
||
24 | 'defaultValue' => null, |
||
25 | ], |
||
26 | ]; |
||
27 | |||
28 | public static function parseValue(array $values): object |
||
38 |