getElementAttribs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
class Nip_Form_Renderer_Elements_Textarea extends \Nip\Form\Renderer\Elements\AbstractElementRenderer
4
{
5
    public function generateElement()
6
    {
7
        $return = '<textarea ';
8
        $return .= $this->renderAttributes();
9
        $return .= ' >' . $this->getElement()->getValue() . '</textarea>';
10
        return $return;
11
    }
12
13
    public function getElementAttribs()
14
    {
15
        $attribs = parent::getElementAttribs();
16
        $attribs[] = 'rows';
17
        $attribs[] = 'cols';
18
        return $attribs;
19
    }
20
}
21