@@ -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 | { |
@@ -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 | */ |
@@ -149,6 +149,9 @@ discard block |
||
149 | 149 | return [$this->getAlias($query) => $value]; |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @return AstFieldInterface |
|
154 | + */ |
|
152 | 155 | protected function resolveField(FieldInterface $field, AstFieldInterface $ast, $parentValue = null, $fromObject = false) |
153 | 156 | { |
154 | 157 | try { |
@@ -220,6 +223,9 @@ discard block |
||
220 | 223 | } |
221 | 224 | } |
222 | 225 | |
226 | + /** |
|
227 | + * @param \Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface $argumentValue |
|
228 | + */ |
|
223 | 229 | private function prepareArgumentValue($argumentValue, AbstractType $argumentType, Request $request) |
224 | 230 | { |
225 | 231 | switch ($argumentType->getKind()) { |
@@ -194,6 +194,9 @@ discard block |
||
194 | 194 | return new Token($this->getKeyword($value), $this->getLine(), $this->getColumn(), $value); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param string $name |
|
199 | + */ |
|
197 | 200 | protected function getKeyword($name) |
198 | 201 | { |
199 | 202 | switch ($name) { |
@@ -273,6 +276,9 @@ discard block |
||
273 | 276 | } |
274 | 277 | } |
275 | 278 | |
279 | + /** |
|
280 | + * @param string $message |
|
281 | + */ |
|
276 | 282 | protected function createException($message) |
277 | 283 | { |
278 | 284 | return new SyntaxErrorException(sprintf('%s', $message), $this->getLocation()); |
@@ -24,6 +24,10 @@ discard block |
||
24 | 24 | use Youshido\GraphQL\Parser\Token; |
25 | 25 | |
26 | 26 | class TokenizerTestingParser extends Parser { |
27 | + |
|
28 | + /** |
|
29 | + * @param string $source |
|
30 | + */ |
|
27 | 31 | public function initTokenizerForTesting($source) { |
28 | 32 | $this->initTokenizer($source); |
29 | 33 | } |
@@ -102,6 +106,9 @@ discard block |
||
102 | 106 | ]); |
103 | 107 | } |
104 | 108 | |
109 | + /** |
|
110 | + * @param string $graphQLString |
|
111 | + */ |
|
105 | 112 | private function tokenizeStringContents($graphQLString) { |
106 | 113 | $parser = new TokenizerTestingParser(); |
107 | 114 | $parser->initTokenizerForTesting('"' . $graphQLString . '"'); |