@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param $name |
|
93 | + * @param string $name |
|
94 | 94 | * |
95 | 95 | * @return Field |
96 | 96 | */ |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | return $this->fields; |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param string $name |
|
127 | + */ |
|
125 | 128 | public function removeField($name) |
126 | 129 | { |
127 | 130 | if ($this->hasField($name)) { |
@@ -223,6 +223,9 @@ discard block |
||
223 | 223 | return $this; |
224 | 224 | } |
225 | 225 | |
226 | + /** |
|
227 | + * @param string $name |
|
228 | + */ |
|
226 | 229 | public function getVariable($name) |
227 | 230 | { |
228 | 231 | return $this->hasVariable($name) ? $this->variables[$name] : null; |
@@ -266,7 +269,7 @@ discard block |
||
266 | 269 | } |
267 | 270 | |
268 | 271 | /** |
269 | - * @return array|VariableReference[] |
|
272 | + * @return VariableReference[] |
|
270 | 273 | */ |
271 | 274 | public function getVariableReferences() |
272 | 275 | { |
@@ -185,6 +185,9 @@ |
||
185 | 185 | } |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param \Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface $argumentValue |
|
190 | + */ |
|
188 | 191 | private function prepareArgumentValue($argumentValue, AbstractType $argumentType, Request $request) |
189 | 192 | { |
190 | 193 | switch ($argumentType->getKind()) { |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @param $cursor string |
|
41 | + * @param string|null $cursor string |
|
42 | 42 | * |
43 | - * @return int|null |
|
43 | + * @return string|null |
|
44 | 44 | * @deprecated Use cursorToKey instead. |
45 | 45 | */ |
46 | 46 | public static function cursorToOffset($cursor) |
@@ -94,6 +94,10 @@ discard block |
||
94 | 94 | return self::connectionFromArraySlice($data, $args, 0, count($data)); |
95 | 95 | } |
96 | 96 | |
97 | + /** |
|
98 | + * @param integer $sliceStart |
|
99 | + * @param integer $arrayLength |
|
100 | + */ |
|
97 | 101 | public static function connectionFromArraySlice(array $data, array $args, $sliceStart, $arrayLength) |
98 | 102 | { |
99 | 103 | $after = isset($args['after']) ? $args['after'] : null; |
@@ -139,6 +143,10 @@ discard block |
||
139 | 143 | ]; |
140 | 144 | } |
141 | 145 | |
146 | + /** |
|
147 | + * @param string $object |
|
148 | + * @param integer $index |
|
149 | + */ |
|
142 | 150 | public static function edgeForObjectWithIndex($object, $index) |
143 | 151 | { |
144 | 152 | return [ |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | */ |
29 | 29 | private $directiveList; |
30 | 30 | |
31 | + /** |
|
32 | + * @param \Youshido\GraphQL\Schema\AbstractSchema $contextObject |
|
33 | + */ |
|
31 | 34 | public function __construct(array $configData, $contextObject = null, $finalClass = false) |
32 | 35 | { |
33 | 36 | $this->typesList = new SchemaTypesList(); |
@@ -88,7 +91,7 @@ discard block |
||
88 | 91 | } |
89 | 92 | |
90 | 93 | /** |
91 | - * @param $query AbstractObjectType |
|
94 | + * @param ObjectType $query AbstractObjectType |
|
92 | 95 | * |
93 | 96 | * @return SchemaConfig |
94 | 97 | */ |
@@ -21,7 +21,6 @@ discard block |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param string $name |
24 | - * @param ValueInterface $value |
|
25 | 24 | * @param Location $location |
26 | 25 | */ |
27 | 26 | public function __construct($name, array $arguments, Location $location) |
@@ -33,7 +32,7 @@ discard block |
||
33 | 32 | } |
34 | 33 | |
35 | 34 | /** |
36 | - * @return mixed |
|
35 | + * @return string |
|
37 | 36 | */ |
38 | 37 | public function getName() |
39 | 38 | { |