Completed
Pull Request — master (#121)
by
unknown
11:29
created
lib/Php/Structure/PHPClass.php 1 patch
Doc Comments   +23 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
         }
20 20
     }
21 21
 
22
+    /**
23
+     * @param string $namespace
24
+     */
22 25
     public function __construct($name = null, $namespace = null)
23 26
     {
24 27
         $this->name = $name;
@@ -36,6 +39,9 @@  discard block
 block discarded – undo
36 39
         return $this;
37 40
     }
38 41
 
42
+    /**
43
+     * @return string
44
+     */
39 45
     public function getNamespace()
40 46
     {
41 47
         return $this->namespace;
@@ -47,11 +53,17 @@  discard block
 block discarded – undo
47 53
         return $this;
48 54
     }
49 55
 
56
+    /**
57
+     * @return string
58
+     */
50 59
     public function getDoc()
51 60
     {
52 61
         return $this->doc;
53 62
     }
54 63
 
64
+    /**
65
+     * @param string $doc
66
+     */
55 67
     public function setDoc($doc)
56 68
     {
57 69
         $this->doc = $doc;
@@ -63,6 +75,9 @@  discard block
 block discarded – undo
63 75
         return $this->getFullName();
64 76
     }
65 77
 
78
+    /**
79
+     * @return string
80
+     */
66 81
     public function getFullName()
67 82
     {
68 83
         return "{$this->namespace}\\{$this->name}";
@@ -96,7 +111,7 @@  discard block
 block discarded – undo
96 111
     /**
97 112
      *
98 113
      * @param
99
-     *            $property
114
+     string            $property
100 115
      * @param
101 116
      *            $check
102 117
      * @param
@@ -162,8 +177,7 @@  discard block
 block discarded – undo
162 177
 
163 178
     /**
164 179
      *
165
-     * @param string $name
166
-     * @return PHPProperty
180
+     * @return PHPProperty[]
167 181
      */
168 182
     public function getPropertiesInHierarchy()
169 183
     {
@@ -234,12 +248,18 @@  discard block
 block discarded – undo
234 248
         return $this->abstract;
235 249
     }
236 250
 
251
+    /**
252
+     * @param boolean $abstract
253
+     */
237 254
     public function setAbstract($abstract)
238 255
     {
239 256
         $this->abstract = (boolean)$abstract;
240 257
         return $this;
241 258
     }
242 259
 
260
+    /**
261
+     * @param string $constantName
262
+     */
243 263
     public function addConstant( $constantName, $constantValue ) {
244 264
         $this->constants[] = new PhpConstant( $constantName, $constantValue );
245 265
     }
Please login to merge, or discard this patch.