src/Config/Object/ListTypeConfig.php 1 location
|
@@ 16-23 (lines=8) @@
|
| 13 |
|
|
| 14 |
|
class ListTypeConfig extends ObjectTypeConfig |
| 15 |
|
{ |
| 16 |
|
public function getRules() |
| 17 |
|
{ |
| 18 |
|
return [ |
| 19 |
|
'itemType' => ['type' => TypeService::TYPE_GRAPHQL_TYPE, 'final' => true], |
| 20 |
|
'resolve' => ['type' => TypeService::TYPE_CALLABLE], |
| 21 |
|
'args' => ['type' => TypeService::TYPE_ARRAY_OF_INPUT_FIELDS], |
| 22 |
|
]; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
| 26 |
|
|
Tests/DataProvider/TestConfig.php 1 location
|
@@ 17-23 (lines=7) @@
|
| 14 |
|
|
| 15 |
|
class TestConfig extends AbstractConfig |
| 16 |
|
{ |
| 17 |
|
public function getRules() |
| 18 |
|
{ |
| 19 |
|
return [ |
| 20 |
|
'name' => ['type' => TypeService::TYPE_ANY, 'required' => true], |
| 21 |
|
'resolve' => ['type' => TypeService::TYPE_CALLABLE, 'final' => true], |
| 22 |
|
]; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
| 26 |
|
|