| @@ 22-29 (lines=8) @@ | ||
| 19 | { |
|
| 20 | use FieldsAwareConfigTrait, ArgumentsAwareConfigTrait; |
|
| 21 | ||
| 22 | public function getRules() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'name' => ['type' => TypeService::TYPE_STRING, 'final' => true], |
|
| 26 | 'description' => ['type' => TypeService::TYPE_STRING], |
|
| 27 | 'values' => ['type' => TypeService::TYPE_ENUM_VALUES, 'required' => true], |
|
| 28 | ]; |
|
| 29 | } |
|
| 30 | ||
| 31 | public function getValues() |
|
| 32 | { |
|
| @@ 16-23 (lines=8) @@ | ||
| 13 | ||
| 14 | class InputObjectTypeConfig extends ObjectTypeConfig |
|
| 15 | { |
|
| 16 | public function getRules() |
|
| 17 | { |
|
| 18 | return [ |
|
| 19 | 'name' => ['type' => TypeService::TYPE_STRING, 'required' => true], |
|
| 20 | 'fields' => ['type' => TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, 'final' => true], |
|
| 21 | 'description' => ['type' => TypeService::TYPE_STRING], |
|
| 22 | ]; |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||