Completed
Push — master ( 705e4f...72d2b6 )
by Nikola
02:18
created
src/RunOpenCode/AbstractBuilder/Ast/Metadata/FileMetadata.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * FileMetadata constructor.
46 46
      *
47 47
      * @param string $filename
48
-     * @param array $classes
48
+     * @param ClassMetadata[] $classes
49 49
      * @param array $traits
50 50
      * @param array $ast
51 51
      */
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @return array
116
+     * @return \PhpParser\Node[]
117 117
      */
118 118
     public function getAst()
119 119
     {
Please login to merge, or discard this patch.
src/RunOpenCode/AbstractBuilder/Ast/Metadata/ParameterMetadata.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @param string $type
56 56
      * @param bool $byRef
57 57
      * @param bool $variadic
58
-     * @param mixed $default
58
+     * @param null|\PhpParser\Node\Expr $default
59 59
      */
60 60
     public function __construct($name, $type = null, $byRef = false, $variadic = false, $default = null, Param $ast = null)
61 61
     {
Please login to merge, or discard this patch.
src/RunOpenCode/AbstractBuilder/Generator/BuilderClassFactory.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -167,6 +167,9 @@  discard block
 block discarded – undo
167 167
         return $this;
168 168
     }
169 169
 
170
+    /**
171
+     * @param string $name
172
+     */
170 173
     public function addGetter($name, ParameterMetadata $parameter)
171 174
     {
172 175
         $method = $this->factory->method($name)
@@ -189,6 +192,9 @@  discard block
 block discarded – undo
189 192
         return $this;
190 193
     }
191 194
 
195
+    /**
196
+     * @param string $name
197
+     */
192 198
     public function addSetter($name, ParameterMetadata $parameter)
193 199
     {
194 200
         $ast = $parameter->getAst();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace RunOpenCode\AbstractBuilder\Generator;
4 4
 
5
-use PhpParser\Comment;
6 5
 use PhpParser\Node\Param;
7 6
 use PhpParser\Node\Stmt\ClassMethod;
8 7
 use RunOpenCode\AbstractBuilder\Ast\BuilderFactory;
Please login to merge, or discard this patch.