Completed
Push — dev ( c5a23f...f84598 )
by James Ekow Abaka
09:41
created
src/engines/php/helpers/form/Element.php 1 patch
Doc Comments   +17 added lines, -2 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);
@@ -153,7 +156,7 @@  discard block
 block discarded – undo
153 156
     /**
154 157
      * Public accessor for getting the name property of the field.
155 158
      *
156
-     * @return The name of the form field.
159
+     * @return string name of the form field.
157 160
      */
158 161
     public function getName()
159 162
     {
@@ -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,7 +195,8 @@  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
      *
191
-     * @return string
198
+     * @param string $description
199
+     * @return Element
192 200
      */
193 201
     public function setDescription($description)
194 202
     {
@@ -247,6 +255,10 @@  discard block
 block discarded – undo
247 255
     //! This method internally creates a new Attribute object and appends
248 256
     //! it to the list of attributes.
249 257
     //! \see Attribute
258
+
259
+    /**
260
+     * @param string $attribute
261
+     */
250 262
     public function setAttribute($attribute,$value,$scope = Element::SCOPE_ELEMENT)
251 263
     {
252 264
         // Force the setting of the attribute.
@@ -276,6 +288,9 @@  discard block
 block discarded – undo
276 288
         return $attributes;
277 289
     }
278 290
     
291
+    /**
292
+     * @param string $attribute
293
+     */
279 294
     public function getAttribute($attribute, $scope = Element::SCOPE_ELEMENT)
280 295
     {
281 296
         $attributes = $this->getAttributes($scope);
Please login to merge, or discard this patch.