Completed
Push — master ( c47098...bd2863 )
by Shcherbak
37:44 queued 22:47
created

TextArea::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
  namespace Fiv\Form\Element;
4
5
  /**
6
   * Class TextArea
7
   * Generate <textarea></textarea> html tag
8
   *
9
   * @author  Ivan Shcherbak <[email protected]>
10
   * @package Fiv\Form
11
   */
12
  class TextArea extends BaseElement {
13
14
    /**
15
     * @return string
16
     */
17
    public function render() {
18
      return '<textarea ' . $this->getAttributesAsString() . '>' . $this->getValue() . '</textarea>';
19
    }
20
21
  }