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