Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class FieldIsBreakLineColumn extends Select |
||
19 | { |
||
20 | /** |
||
21 | * Value which equal Enable for Enabledisable dropdown. |
||
22 | */ |
||
23 | public const ENABLE_VALUE = 1; |
||
24 | |||
25 | /** |
||
26 | * Value which equal Disable for Enabledisable dropdown. |
||
27 | */ |
||
28 | public const DISABLE_VALUE = 0; |
||
29 | |||
30 | /** |
||
31 | * Set "name" for <select> element. |
||
32 | * |
||
33 | * @param string $value |
||
34 | * |
||
35 | * @return $this |
||
36 | */ |
||
37 | public function setInputName($value) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Set "id" for <select> element. |
||
44 | * |
||
45 | * @param string $value |
||
46 | * |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function setInputId($value) |
||
50 | { |
||
51 | return $this->setId($value); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Render block HTML. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function _toHtml(): string |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * Render Options. |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | private function getSourceOptions(): array |
||
78 | ]; |
||
79 | } |
||
81 |