@@ -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\Interfaces\ValueInterface $argumentValue |
|
| 226 | + */ |
|
| 224 | 227 | private function prepareArgumentValue($argumentValue, AbstractType $argumentType, Request $request) |
| 225 | 228 | { |
| 226 | 229 | switch ($argumentType->getKind()) { |
@@ -314,6 +317,9 @@ discard block |
||
| 314 | 317 | } |
| 315 | 318 | } |
| 316 | 319 | |
| 320 | + /** |
|
| 321 | + * @param AstFieldInterface $ast |
|
| 322 | + */ |
|
| 317 | 323 | private function collectResult(FieldInterface $field, AbstractObjectType $type, $ast, $resolvedValue) |
| 318 | 324 | { |
| 319 | 325 | /** @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|\Youshido\GraphQL\Parser\Ast\Interfaces\FragmentInterface $queryNode |
|
| 95 | + * @param Query $queryNode |
|
| 96 | 96 | * @param FieldInterface $currentLevelAST |
| 97 | 97 | * |
| 98 | 98 | * @return \Generator |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | /** |
| 297 | - * @return array|InputList|InputObject|Literal|VariableReference |
|
| 297 | + * @return Ast\Interfaces\ValueInterface |
|
| 298 | 298 | * |
| 299 | 299 | * @throws SyntaxErrorException |
| 300 | 300 | */ |
@@ -51,6 +51,10 @@ |
||
| 51 | 51 | /** @var integer */ |
| 52 | 52 | private $column; |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param integer $line |
|
| 56 | + * @param integer $column |
|
| 57 | + */ |
|
| 54 | 58 | public function __construct($type, $line, $column, $data = null) |
| 55 | 59 | { |
| 56 | 60 | $this->type = $type; |