← All changes
|
modules/atomic-widgets/controls/section.php
+2
-17
4.1.0-dev3
→
3.28.0-dev2
View file →
| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | exit; // Exit if accessed directly. |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | class Section implements JsonSerializable { |
| 11 | - private ?string $id = null; | |
| 12 | 11 | private $label = null; |
| 13 | 12 | private $description = null; |
| 14 | 13 | private array $items = []; |
| 15 | 14 | |
| @@ -16,30 +15,16 @@ | ||
| 16 | 15 | public static function make(): self { |
| 17 | 16 | return new static(); |
| 18 | 17 | } |
| 19 | 18 | |
| 20 | - public function set_id( string $id ): self { | |
| 21 | - $this->id = $id; | |
| 22 | - | |
| 23 | - return $this; | |
| 24 | - } | |
| 25 | - | |
| 26 | - public function get_id() { | |
| 27 | - return $this->id; | |
| 28 | - } | |
| 29 | - | |
| 30 | 19 | public function set_label( string $label ): self { |
| 31 | - $this->label = html_entity_decode( $label ); | |
| 20 | + $this->label = $label; | |
| 32 | 21 | |
| 33 | 22 | return $this; |
| 34 | 23 | } |
| 35 | 24 | |
| 36 | - public function get_label(): ?string { | |
| 37 | - return $this->label; | |
| 38 | - } | |
| 39 | - | |
| 40 | 25 | public function set_description( string $description ): self { |
| 41 | - $this->description = html_entity_decode( $description ); | |
| 26 | + $this->description = $description; | |
| 42 | 27 | |
| 43 | 28 | return $this; |
| 44 | 29 | } |
| 45 | 30 | |