@@ -45,6 +45,9 @@ |
||
| 45 | 45 | { |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $name |
|
| 50 | + */ |
|
| 48 | 51 | public function addQuery($name, AbstractObjectType $query) |
| 49 | 52 | { |
| 50 | 53 | $this->getQueryType()->getConfig()->addField($name, $query); |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | trait ResolvableObjectTrait |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string|boolean $value |
|
| 19 | + */ |
|
| 17 | 20 | public function resolve($value, array $args, ResolveInfo $info) |
| 18 | 21 | { |
| 19 | 22 | if ($resolveFunction = $this->getConfig()->getResolveFunction()) { |
@@ -221,6 +221,9 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | + /** |
|
| 225 | + * @param \Youshido\GraphQL\Parser\Ast\ArgumentValue\ValueInterface $argumentValue |
|
| 226 | + */ |
|
| 224 | 227 | private function prepareArgumentValue($argumentValue, AbstractType $argumentType, Request $request) |
| 225 | 228 | { |
| 226 | 229 | switch ($argumentType->getKind()) { |
@@ -304,6 +307,9 @@ discard block |
||
| 304 | 307 | } |
| 305 | 308 | } |
| 306 | 309 | |
| 310 | + /** |
|
| 311 | + * @param AstFieldInterface $ast |
|
| 312 | + */ |
|
| 307 | 313 | private function collectResult(FieldInterface $field, AbstractObjectType $type, $ast, $resolvedValue) |
| 308 | 314 | { |
| 309 | 315 | /** @var AstQuery $ast */ |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * Fragments (anonymous and named), and Fields. The core of the function is simple: recurse until we hit the base |
| 93 | 93 | * case of a Field and yield that back up to the visitor up in `doVisit`. |
| 94 | 94 | * |
| 95 | - * @param Query|Field|FragmentInterface $queryNode |
|
| 95 | + * @param Query $queryNode |
|
| 96 | 96 | * @param FieldInterface $currentLevelAST |
| 97 | 97 | * |
| 98 | 98 | * @return \Generator |