@@ -16,13 +16,16 @@ |
||
| 16 | 16 | { |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @return AbstractObjectType |
|
| 19 | + * @return IntType |
|
| 20 | 20 | */ |
| 21 | 21 | public function getType() |
| 22 | 22 | { |
| 23 | 23 | return new IntType(); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $value |
|
| 28 | + */ |
|
| 26 | 29 | public function resolve($value, array $args, ResolveInfo $info) |
| 27 | 30 | { |
| 28 | 31 | return $value; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @return AbstractInputObjectType |
|
| 19 | + * @return IntType |
|
| 20 | 20 | */ |
| 21 | 21 | public function getType() |
| 22 | 22 | { |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param AbstractObjectType $objectType |
| 45 | - * @param Mutation|Query|AstField $field |
|
| 46 | - * @return null |
|
| 45 | + * @param AstField $field |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | public function objectHasField($objectType, $field) |
| 49 | 49 | { |
@@ -58,6 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @inheritdoc |
| 61 | + * @param Query $query |
|
| 61 | 62 | */ |
| 62 | 63 | public function validateArguments(AbstractField $field, $query, Request $request) |
| 63 | 64 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @param Query|Field $query |
|
| 113 | + * @param Query $query |
|
| 114 | 114 | * @param AbstractObjectType $currentLevelSchema |
| 115 | 115 | * @return array|bool|mixed |
| 116 | 116 | */ |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | /** |
| 320 | - * @param $query Query|FragmentInterface |
|
| 320 | + * @param Query $query Query|FragmentInterface |
|
| 321 | 321 | * @param $queryType AbstractObjectType|TypeInterface|Field|AbstractType |
| 322 | 322 | * @param $resolvedValue mixed |
| 323 | 323 | * @param $value array |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | * Fragments (anonymous and named), and Fields. The core of the function is simple: recurse until we hit the base |
| 498 | 498 | * case of a Field and yield that back up to the visitor up in `doVisit`. |
| 499 | 499 | * |
| 500 | - * @param Query|Field|FragmentInterface $queryNode |
|
| 500 | + * @param Query $queryNode |
|
| 501 | 501 | * @param AbstractField $currentLevelAST |
| 502 | 502 | * |
| 503 | 503 | * @return \Generator |