@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return mixed |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function getName() |
45 | 45 | { |
@@ -20,5 +20,8 @@ |
||
20 | 20 | { |
21 | 21 | public function getValue(); |
22 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function setValue($value); |
24 | 27 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @return Field[]|FragmentInterface[]|Query[] |
|
64 | + * @return Query[] |
|
65 | 65 | */ |
66 | 66 | public function getFields() |
67 | 67 | { |
@@ -82,6 +82,10 @@ |
||
82 | 82 | /** @var int */ |
83 | 83 | private $column; |
84 | 84 | |
85 | + /** |
|
86 | + * @param integer $line |
|
87 | + * @param integer $column |
|
88 | + */ |
|
85 | 89 | public function __construct($type, $line, $column, $data = null) |
86 | 90 | { |
87 | 91 | $this->type = $type; |
@@ -219,6 +219,9 @@ discard block |
||
219 | 219 | return new Token($this->getKeyword($value), $this->getLine(), $this->getColumn(), $value); |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param string $name |
|
224 | + */ |
|
222 | 225 | protected function getKeyword($name) |
223 | 226 | { |
224 | 227 | switch ($name) { |
@@ -302,6 +305,9 @@ discard block |
||
302 | 305 | } |
303 | 306 | } |
304 | 307 | |
308 | + /** |
|
309 | + * @param string $message |
|
310 | + */ |
|
305 | 311 | protected function createException($message) |
306 | 312 | { |
307 | 313 | return new SyntaxErrorException(\sprintf('%s', $message), $this->getLocation()); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @param $cursor string |
54 | 54 | * |
55 | - * @return int|null |
|
55 | + * @return string|null |
|
56 | 56 | * |
57 | 57 | * @deprecated Use cursorToKey instead. |
58 | 58 | */ |
@@ -109,6 +109,10 @@ discard block |
||
109 | 109 | return self::connectionFromArraySlice($data, $args, 0, \count($data)); |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param integer $sliceStart |
|
114 | + * @param integer $arrayLength |
|
115 | + */ |
|
112 | 116 | public static function connectionFromArraySlice(array $data, array $args, $sliceStart, $arrayLength) |
113 | 117 | { |
114 | 118 | $after = $args['after'] ?? null; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param $typeName string name of type |
|
36 | + * @param string $typeName string name of type |
|
37 | 37 | * @param $id int local id |
38 | 38 | * |
39 | 39 | * @return string global id |
@@ -70,6 +70,9 @@ |
||
70 | 70 | return $this->directivesList; |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param DirectiveInterface $directive |
|
75 | + */ |
|
73 | 76 | private function getDirectiveName($directive) |
74 | 77 | { |
75 | 78 | if (\is_string($directive)) { |
@@ -18,5 +18,8 @@ |
||
18 | 18 | |
19 | 19 | interface ConfigValidatorInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return boolean |
|
23 | + */ |
|
21 | 24 | public function validate($data, $rules = [], $allowExtraFields = null); |
22 | 25 | } |