Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | abstract class AbstractInput extends AbstractStandardFormControl implements FormFieldInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $type = 'text'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $dataList; |
||
19 | |||
20 | /** |
||
21 | * Get the value of type |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getType(): string |
||
26 | { |
||
27 | return $this->type; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | */ |
||
33 | protected function resolveAttributes(): AbstractHtmlElement |
||
34 | { |
||
35 | return parent::resolveAttributes() |
||
36 | ->addAttribute('type', $this->type) |
||
|
|||
37 | ->addAttribute('value', $this->value) |
||
38 | ->addAttribute('datalist', $this->dataList); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | */ |
||
44 | protected function renderHtmlMarkup(): string |
||
47 | } |
||
48 | } |
||
49 |