@@ -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; |
@@ -98,6 +98,9 @@ |
||
98 | 98 | return $this->arguments; |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $name |
|
103 | + */ |
|
101 | 104 | public function removeArgument($name) |
102 | 105 | { |
103 | 106 | if ($this->hasArgument($name)) { |