Completed
Pull Request — master (#22)
by Todd
02:46
created
src/CompilerBuffer.php 1 patch
Doc Comments   +17 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
         $this->current->echoLiteral($value);
78 78
     }
79 79
 
80
+    /**
81
+     * @param string $php
82
+     */
80 83
     public function echoCode($php) {
81 84
         $this->current->echoCode($php);
82 85
     }
@@ -85,6 +88,9 @@  discard block
 block discarded – undo
85 88
         $this->current->appendCode($php);
86 89
     }
87 90
 
91
+    /**
92
+     * @param integer $add
93
+     */
88 94
     public function indent($add) {
89 95
         $this->current->indent($add);
90 96
     }
@@ -93,6 +99,9 @@  discard block
 block discarded – undo
93 99
         $this->current->depth($add);
94 100
     }
95 101
 
102
+    /**
103
+     * @param string $name
104
+     */
96 105
     public function depthName($name, $add = 0) {
97 106
         return $this->current->depthName($name, $add);
98 107
     }
@@ -192,6 +201,9 @@  discard block
 block discarded – undo
192 201
         return $this;
193 202
     }
194 203
 
204
+    /**
205
+     * @param string $name
206
+     */
195 207
     public function getNodeProp(\DOMNode $node, $name, $default = null) {
196 208
         if (!$this->nodeProps->contains($node) || !array_key_exists($name, $this->nodeProps[$node])) {
197 209
             return $default;
@@ -199,6 +211,10 @@  discard block
 block discarded – undo
199 211
         return $this->nodeProps[$node][$name];
200 212
     }
201 213
 
214
+    /**
215
+     * @param string $name
216
+     * @param boolean $value
217
+     */
202 218
     public function setNodeProp(\DOMNode $node = null, $name, $value) {
203 219
         if ($node === null) {
204 220
             return $this;
@@ -286,7 +302,7 @@  discard block
 block discarded – undo
286 302
     /**
287 303
      * Set the source.
288 304
      *
289
-     * @param mixed $source
305
+     * @param string $source
290 306
      * @return $this
291 307
      */
292 308
     public function setSource($source) {
Please login to merge, or discard this patch.