1 | <?php |
||
22 | class WidgetModel implements WidgetModelInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $type; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $name; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $visible; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $parameters; |
||
48 | |||
49 | public function __construct() |
||
54 | |||
55 | public function getTypes(): array |
||
61 | |||
62 | /** |
||
63 | * Get id. |
||
64 | * |
||
65 | * @return int |
||
66 | */ |
||
67 | public function getId() |
||
71 | |||
72 | /** |
||
73 | * Set id. |
||
74 | * |
||
75 | * @param int $id |
||
76 | * |
||
77 | * @return WidgetModel |
||
78 | */ |
||
79 | public function setId($id) |
||
85 | |||
86 | /** |
||
87 | * Set name. |
||
88 | * |
||
89 | * @param string $name |
||
90 | * |
||
91 | * @return WidgetModel |
||
92 | */ |
||
93 | public function setName($name) |
||
99 | |||
100 | /** |
||
101 | * Get name. |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getName() |
||
109 | |||
110 | /** |
||
111 | * Gets the value of visible. |
||
112 | * |
||
113 | * @return bool |
||
114 | */ |
||
115 | public function getVisible() |
||
119 | |||
120 | /** |
||
121 | * Sets the value of visible. |
||
122 | * |
||
123 | * @param bool $visible the visible |
||
124 | * |
||
125 | * @return WidgetModel |
||
126 | */ |
||
127 | public function setVisible($visible) |
||
133 | |||
134 | /** |
||
135 | * Gets the value of type. |
||
136 | * |
||
137 | * @return int |
||
138 | */ |
||
139 | public function getType() |
||
143 | |||
144 | /** |
||
145 | * Sets the value of type. |
||
146 | * |
||
147 | * @param int $type the type |
||
148 | * |
||
149 | * @return WidgetModel |
||
150 | */ |
||
151 | public function setType($type = self::TYPE_HTML) |
||
161 | |||
162 | /** |
||
163 | * Gets the value of parameters. |
||
164 | * |
||
165 | * @return array |
||
166 | */ |
||
167 | public function getParameters() |
||
171 | |||
172 | /** |
||
173 | * Sets the value of parameters. |
||
174 | * |
||
175 | * @param array $parameters the parameters |
||
176 | * |
||
177 | * @return WidgetModel |
||
178 | */ |
||
179 | public function setParameters(array $parameters = []) |
||
185 | } |
||
186 |