Completed
Pull Request — master (#75)
by
unknown
04:51
created
src/Config/Traits/ResolvableObjectTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
 trait ResolvableObjectTrait {
15 15
 
16
+  /**
17
+   * @param string|boolean $value
18
+   */
16 19
   public function resolve($value, array $args, ResolveInfo $info)
17 20
   {
18 21
     if ($this->resolveFunctionCache === null) {
Please login to merge, or discard this patch.
src/Execution/Processor.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-     * @param Query|Field        $query
107
+     * @param Query        $query
108 108
      * @param AbstractObjectType $currentLevelSchema
109 109
      * @return array|bool|mixed
110 110
      */
@@ -236,6 +236,9 @@  discard block
 block discarded – undo
236 236
         return $value;
237 237
     }
238 238
 
239
+    /**
240
+     * @param FieldInterface $field
241
+     */
239 242
     protected function createResolveInfo($field, $fields)
240 243
     {
241 244
         return new ResolveInfo($field, $fields, $this->executionContext);
@@ -284,7 +287,7 @@  discard block
 block discarded – undo
284 287
     }
285 288
 
286 289
     /**
287
-     * @param $query         Query|FragmentInterface
290
+     * @param Query $query         Query|FragmentInterface
288 291
      * @param $queryType     AbstractObjectType|TypeInterface|Field|AbstractType
289 292
      * @param $resolvedValue mixed
290 293
      * @param $value         array
@@ -462,7 +465,7 @@  discard block
 block discarded – undo
462 465
      * Fragments (anonymous and named), and Fields.  The core of the function is simple: recurse until we hit the base
463 466
      * case of a Field and yield that back up to the visitor up in `doVisit`.
464 467
      *
465
-     * @param Query|Field|FragmentInterface $queryNode
468
+     * @param Query $queryNode
466 469
      * @param FieldInterface                 $currentLevelAST
467 470
      *
468 471
      * @return \Generator
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * @param AbstractObjectType      $objectType
48
-     * @param Mutation|Query|AstField $field
48
+     * @param AstField $field
49 49
      *
50
-     * @return null
50
+     * @return boolean
51 51
      */
52 52
     public function objectHasField($objectType, $field)
53 53
     {
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * @inheritdoc
65
+     * @param Query $query
65 66
      */
66 67
     public function validateArguments(FieldInterface $field, $query, Request $request)
67 68
     {
@@ -138,6 +139,9 @@  discard block
 block discarded – undo
138 139
         return true;
139 140
     }
140 141
 
142
+    /**
143
+     * @param Request $request
144
+     */
141 145
     private function processInputObject(InputObject $astObject, AbstractInputObjectType $inputObjectType, $request)
142 146
     {
143 147
         foreach ($astObject->getValue() as $name => $value) {
Please login to merge, or discard this patch.
src/Config/Schema/SchemaConfig.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
      */
24 24
     private $typesList;
25 25
 
26
+    /**
27
+     * @param \Youshido\GraphQL\Schema\AbstractSchema $contextObject
28
+     */
26 29
     public function __construct(array $configData, $contextObject = null, $finalClass = false)
27 30
     {
28 31
         $this->typesList = new SchemaTypesList();
@@ -58,7 +61,7 @@  discard block
 block discarded – undo
58 61
     }
59 62
 
60 63
     /**
61
-     * @param $query AbstractObjectType
64
+     * @param \Youshido\Tests\StarWars\Schema\StarWarsQueryType $query AbstractObjectType
62 65
      *
63 66
      * @return SchemaConfig
64 67
      */
Please login to merge, or discard this patch.
src/Execution/Request.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
     {
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $name
50
+     */
48 51
     public function addQuery($name, AbstractObjectType $query)
49 52
     {
50 53
         $this->getQueryType()->getConfig()->addField($name, $query);
Please login to merge, or discard this patch.
src/Config/AbstractConfig.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     }
123 123
 
124 124
     /**
125
-     * @param      $key
125
+     * @param      string $key
126 126
      * @param null $defaultValue
127 127
      * @return mixed|null|callable
128 128
      */
@@ -131,6 +131,9 @@  discard block
 block discarded – undo
131 131
         return array_key_exists($key, $this->data) ? $this->data[$key] : $defaultValue;
132 132
     }
133 133
 
134
+    /**
135
+     * @param string $key
136
+     */
134 137
     public function set($key, $value)
135 138
     {
136 139
         $this->data[$key] = $value;
Please login to merge, or discard this patch.
src/Execution/Container/Container.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         return $this->values[$id];
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $id
35
+     */
33 36
     public function set($id, $value)
34 37
     {
35 38
         $this->values[$id] = $value;
Please login to merge, or discard this patch.
src/Parser/Tokenizer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@  discard block
 block discarded – undo
182 182
         return new Token($this->getKeyword($value), $value);
183 183
     }
184 184
 
185
+    /**
186
+     * @param string $name
187
+     */
185 188
     protected function getKeyword($name)
186 189
     {
187 190
         switch ($name) {
@@ -261,6 +264,9 @@  discard block
 block discarded – undo
261 264
         }
262 265
     }
263 266
 
267
+    /**
268
+     * @param string $message
269
+     */
264 270
     protected function createException($message)
265 271
     {
266 272
         return new SyntaxErrorException(sprintf('%s at (%s:%s)', $message, $this->line, $this->getColumn()));
Please login to merge, or discard this patch.
src/Type/SchemaTypesList.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -48,11 +48,17 @@
 block discarded – undo
48 48
         return $this;
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $typeName
53
+     */
51 54
     public function isTypeNameRegistered($typeName)
52 55
     {
53 56
         return (isset($this->typesList[$typeName]));
54 57
     }
55 58
 
59
+    /**
60
+     * @param TypeInterface $type
61
+     */
56 62
     private function getTypeName($type) {
57 63
         if (is_string($type)) return $type;
58 64
         if (is_object($type) && $type instanceof AbstractType) {
Please login to merge, or discard this patch.