Completed
Pull Request — master (#77)
by Sebastian
02:39
created
src/Config/Traits/ArgumentsAwareConfigTrait.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/Traits/FieldsAwareConfigTrait.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
 
95 95
     /**
96
-     * @param $name
96
+     * @param string $name
97 97
      *
98 98
      * @return Field
99 99
      */
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
         return $this->fields;
126 126
     }
127 127
 
128
+    /**
129
+     * @param string $name
130
+     */
128 131
     public function removeField($name)
129 132
     {
130 133
         if ($this->hasField($name)) {
Please login to merge, or discard this patch.
src/Parser/Ast/Fragment.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Parser/Ast/Query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @return Field[]|Query[]|FragmentInterface[]
77
+     * @return Query[]
78 78
      */
79 79
     public function getFields()
80 80
     {
Please login to merge, or discard this patch.
src/Parser/Ast/TypedFragmentReference.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Type/InterfaceType/AbstractInterfaceType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
         $this->config = new InterfaceTypeConfig($config, $this);
46 46
     }
47 47
 
48
+    /**
49
+     * @return AbstractType
50
+     */
48 51
     abstract public function resolveType($object);
49 52
 
50 53
     /**
Please login to merge, or discard this patch.
src/Type/InterfaceType/InterfaceType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Type/NonNullType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         return $value;
51 51
     }
52 52
 
53
+    /**
54
+     * @param null|Scalar\StringType $value
55
+     */
53 56
     public function isValidValue($value)
54 57
     {
55 58
         return $value !== null;
Please login to merge, or discard this patch.
src/Validator/SchemaValidator/SchemaValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param Field                 $objField
58 58
      * @param AbstractInterfaceType $interface
59 59
      *
60
-     * @return bool
60
+     * @return boolean|null
61 61
      *
62 62
      * @throws ConfigurationException
63 63
      */
Please login to merge, or discard this patch.