| @@ 194-206 (lines=13) @@ | ||
| 191 | * Exists for the performance |
|
| 192 | * @return array |
|
| 193 | */ |
|
| 194 | private function getFieldConfigRules() |
|
| 195 | { |
|
| 196 | return [ |
|
| 197 | 'name' => ['type' => TypeService::TYPE_STRING, 'required' => true], |
|
| 198 | 'type' => ['type' => TypeService::TYPE_ANY, 'required' => true], |
|
| 199 | 'args' => ['type' => TypeService::TYPE_ARRAY], |
|
| 200 | 'description' => ['type' => TypeService::TYPE_STRING], |
|
| 201 | 'resolve' => ['type' => TypeService::TYPE_CALLABLE], |
|
| 202 | 'isDeprecated' => ['type' => TypeService::TYPE_BOOLEAN], |
|
| 203 | 'deprecationReason' => ['type' => TypeService::TYPE_STRING], |
|
| 204 | 'cost' => ['type' => TypeService::TYPE_ANY] |
|
| 205 | ]; |
|
| 206 | } |
|
| 207 | ||
| 208 | } |
|
| 209 | ||
| @@ 28-40 (lines=13) @@ | ||
| 25 | ||
| 26 | use ArgumentsAwareConfigTrait; |
|
| 27 | ||
| 28 | public function getRules() |
|
| 29 | { |
|
| 30 | return [ |
|
| 31 | 'name' => ['type' => TypeService::TYPE_STRING, 'final' => true], |
|
| 32 | 'type' => ['type' => TypeService::TYPE_GRAPHQL_TYPE, 'final' => true], |
|
| 33 | 'args' => ['type' => TypeService::TYPE_ARRAY], |
|
| 34 | 'description' => ['type' => TypeService::TYPE_STRING], |
|
| 35 | 'resolve' => ['type' => TypeService::TYPE_CALLABLE], |
|
| 36 | 'isDeprecated' => ['type' => TypeService::TYPE_BOOLEAN], |
|
| 37 | 'deprecationReason' => ['type' => TypeService::TYPE_STRING], |
|
| 38 | 'cost' => ['type' => TypeService::TYPE_ANY] |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | protected function build() |
|
| 43 | { |
|