Completed
Push — dev ( 26974b...a486ee )
by James Ekow Abaka
01:47
created
src/helpers/form/Element.php 1 patch
Doc Comments   +19 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@  discard block
 block discarded – undo
126 126
         $this->setId($id);
127 127
     }
128 128
     
129
+    /**
130
+     * @param string $id
131
+     */
129 132
     public function setId($id)
130 133
     {
131 134
         $this->id = str_replace(".","_",$id);
@@ -141,7 +144,7 @@  discard block
 block discarded – undo
141 144
     /**
142 145
      * Public accessor for setting the name property of the field.
143 146
      *
144
-     * @param  $name The name to assign to the form element.
147
+     * @param  string $name The name to assign to the form element.
145 148
      * @return Element
146 149
      */
147 150
     public function setName($name)
@@ -161,6 +164,10 @@  discard block
 block discarded – undo
161 164
     }
162 165
 
163 166
     //! Sets the label which is attached to this element.
167
+
168
+    /**
169
+     * @param string $label
170
+     */
164 171
     public function setLabel($label)
165 172
     {
166 173
         $this->label = $label;
@@ -188,6 +195,7 @@  discard block
 block discarded – undo
188 195
      * Sets the description which is attached to this element. The description
189 196
      * is normally displayed under the element when rendering HTML.
190 197
      *
198
+     * @param string $description
191 199
      * @return Element
192 200
      */
193 201
     public function setDescription($description)
@@ -249,6 +257,10 @@  discard block
 block discarded – undo
249 257
     //! This method internally creates a new Attribute object and appends
250 258
     //! it to the list of attributes.
251 259
     //! \see Attribute
260
+
261
+    /**
262
+     * @param string $attribute
263
+     */
252 264
     public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT)
253 265
     {
254 266
         // Force the setting of the attribute.
@@ -278,6 +290,9 @@  discard block
 block discarded – undo
278 290
         return $attributes;
279 291
     }
280 292
     
293
+    /**
294
+     * @param string $attribute
295
+     */
281 296
     public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT)
282 297
     {
283 298
         $attributes = $this->getAttributes($scope);
@@ -295,6 +310,9 @@  discard block
 block discarded – undo
295 310
         return $this->renderLabel;
296 311
     }
297 312
     
313
+    /**
314
+     * @param boolean $renderLabel
315
+     */
298 316
     public function setRenderLabel($renderLabel)
299 317
     {
300 318
         $this->renderLabel = $renderLabel;
Please login to merge, or discard this patch.
src/helpers/form/Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     /**
77 77
      * Get the value of the field.
78 78
      *
79
-     * @return unknown
79
+     * @return string
80 80
      */
81 81
     public function getValue()
82 82
     {
Please login to merge, or discard this patch.