Wysiwyg::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
namespace AtDataGrid\Column;
4
5
class Wysiwyg extends Textarea
6
{
7
    public function __construct($name)
8
    {
9
        parent::__construct($name);
10
11
        $formElement = new \Zend\Form\Element\Textarea($this->getName());
12
        $formElement->setAttribute('class', 'wysiwyg');
13
14
        $this->setFormElement($formElement);
15
    }
16
}