@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * @param mixed $name |
|
| 63 | + * @param string $name |
|
| 64 | 64 | */ |
| 65 | 65 | public function setName($name) |
| 66 | 66 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @param mixed $model |
|
| 79 | + * @param string $model |
|
| 80 | 80 | */ |
| 81 | 81 | public function setModel($model) |
| 82 | 82 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * @return Field[]|Query[] |
|
| 87 | + * @return Query[] |
|
| 88 | 88 | */ |
| 89 | 89 | public function getFields() |
| 90 | 90 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @param Field[]|Query[] $fields |
|
| 95 | + * @param Field[] $fields |
|
| 96 | 96 | */ |
| 97 | 97 | public function setFields($fields) |
| 98 | 98 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return Field[]|Query[]|FragmentInterface[] |
|
| 77 | + * @return Query[] |
|
| 78 | 78 | */ |
| 79 | 79 | public function getFields() |
| 80 | 80 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @return Field[]|Query[] |
|
| 31 | + * @return Field[] |
|
| 32 | 32 | */ |
| 33 | 33 | public function getFields() |
| 34 | 34 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @param Field[]|Query[] $fields |
|
| 39 | + * @param Field[] $fields |
|
| 40 | 40 | */ |
| 41 | 41 | public function setFields($fields) |
| 42 | 42 | { |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | { |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param \Youshido\GraphQL\Type\Object\ObjectType $object |
|
| 30 | + */ |
|
| 28 | 31 | public function resolveType($object) |
| 29 | 32 | { |
| 30 | 33 | return $this->getConfig()->resolveType($object); |
@@ -87,6 +87,9 @@ |
||
| 87 | 87 | return $this->getConfigValue('interfaces', []); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param ObjectType|null $value |
|
| 92 | + */ |
|
| 90 | 93 | public function isValidValue($value) |
| 91 | 94 | { |
| 92 | 95 | return is_array($value) || is_null($value) || is_object($value); |
@@ -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()) { |
@@ -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 |
@@ -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; |
@@ -2,14 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Youshido\Tests\Schema; |
| 4 | 4 | |
| 5 | -use Youshido\GraphQL\Config\Object\InterfaceTypeConfig; |
|
| 6 | -use Youshido\GraphQL\Config\Object\ObjectTypeConfig; |
|
| 7 | 5 | use Youshido\GraphQL\Execution\Processor; |
| 8 | 6 | use Youshido\GraphQL\Schema\Schema; |
| 9 | 7 | use Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType; |
| 10 | -use Youshido\GraphQL\Type\InterfaceType\InterfaceType; |
|
| 11 | 8 | use Youshido\GraphQL\Type\ListType\ListType; |
| 12 | -use Youshido\GraphQL\Type\NonNullType; |
|
| 13 | 9 | use Youshido\GraphQL\Type\Object\AbstractObjectType; |
| 14 | 10 | use Youshido\GraphQL\Type\Object\ObjectType; |
| 15 | 11 | use Youshido\GraphQL\Type\Scalar\IdType; |