Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TextArea extends FieldAbstract |
||
11 | { |
||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | 1 | public function getTag(): string |
|
18 | } |
||
19 | |||
20 | |||
21 | 1 | public function init() |
|
22 | { |
||
23 | 1 | $this->setAttribute('type', 'text'); |
|
24 | 1 | $this->setAttribute('class', 'form-control'); |
|
25 | 1 | $stringTrim = new FilterAdapterZf(new StringTrim()); |
|
26 | 1 | $stripTags = new FilterAdapterZf(new StripTags()); |
|
27 | 1 | $this->addFilter($stringTrim); |
|
28 | 1 | $this->addFilter($stripTags); |
|
29 | 1 | $this->setRenderer(new TextAreaRender()); |
|
30 | 1 | } |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public function getPlaceholder(): string |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $placeholder |
||
42 | */ |
||
43 | 1 | public function setPlaceholder(string $placeholder): void |
|
46 | } |
||
47 | } |