1 | <?php |
||
25 | final class HighchartsTitle implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Align. |
||
29 | * |
||
30 | * @var string |
||
31 | * @since 2.0 |
||
32 | */ |
||
33 | private $align = "center"; |
||
34 | |||
35 | /** |
||
36 | * Floating. |
||
37 | * |
||
38 | * @var boolean |
||
39 | * @since 2.1 |
||
40 | */ |
||
41 | private $floating = false; |
||
42 | |||
43 | /** |
||
44 | * Margin. |
||
45 | * |
||
46 | * @var integer |
||
47 | * @since 2.1 |
||
48 | */ |
||
49 | private $margin = 15; |
||
50 | |||
51 | /** |
||
52 | * Style. |
||
53 | * |
||
54 | * @var array |
||
55 | */ |
||
56 | private $style = ["color" => "#333333", "fontSize" => "18px"]; |
||
57 | |||
58 | /** |
||
59 | * Text. |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | private $text = "Chart title"; |
||
64 | |||
65 | /** |
||
66 | * Use HTML. |
||
67 | * |
||
68 | * @var boolean |
||
69 | */ |
||
70 | private $useHTML = false; |
||
71 | |||
72 | /** |
||
73 | * Vertical align. |
||
74 | * |
||
75 | * @var string |
||
76 | * @since 2.1 |
||
77 | */ |
||
78 | private $verticalAlign; |
||
79 | |||
80 | /** |
||
81 | * Width adjust. |
||
82 | * |
||
83 | * @var integer |
||
84 | * @since 4.2.5 |
||
85 | */ |
||
86 | private $widthAdjust = -44; |
||
87 | |||
88 | /** |
||
89 | * X. |
||
90 | * |
||
91 | * @var integer |
||
92 | * @since 2.0 |
||
93 | */ |
||
94 | private $x = 0; |
||
95 | |||
96 | /** |
||
97 | * Y. |
||
98 | * |
||
99 | * @var integer |
||
100 | * @since 2.0 |
||
101 | */ |
||
102 | private $y; |
||
103 | |||
104 | /** |
||
105 | * Constructor. |
||
106 | * |
||
107 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
108 | */ |
||
109 | public function __construct($ignoreDefaultValues = true) { |
||
114 | |||
115 | /** |
||
116 | * Clear. |
||
117 | * |
||
118 | * @return void |
||
119 | */ |
||
120 | public function clear() { |
||
152 | |||
153 | /** |
||
154 | * Get the align. |
||
155 | * |
||
156 | * @return string Returns the align. |
||
157 | */ |
||
158 | public function getAlign() { |
||
161 | |||
162 | /** |
||
163 | * Get the floating. |
||
164 | * |
||
165 | * @return boolean Returns the floating. |
||
166 | */ |
||
167 | public function getFloating() { |
||
170 | |||
171 | /** |
||
172 | * Get the margin. |
||
173 | * |
||
174 | * @return integer Returns the margin. |
||
175 | */ |
||
176 | public function getMargin() { |
||
179 | |||
180 | /** |
||
181 | * Get the style. |
||
182 | * |
||
183 | * @return array Returns the style. |
||
184 | */ |
||
185 | public function getStyle() { |
||
188 | |||
189 | /** |
||
190 | * Get the text. |
||
191 | * |
||
192 | * @return string Returns the text. |
||
193 | */ |
||
194 | public function getText() { |
||
197 | |||
198 | /** |
||
199 | * Get the use HTML. |
||
200 | * |
||
201 | * @return boolean Returns the use HTML. |
||
202 | */ |
||
203 | public function getUseHTML() { |
||
206 | |||
207 | /** |
||
208 | * Get the vertical align. |
||
209 | * |
||
210 | * @return string Returns the vertical align. |
||
211 | */ |
||
212 | public function getVerticalAlign() { |
||
215 | |||
216 | /** |
||
217 | * Get the width adjust. |
||
218 | * |
||
219 | * @return integer Returns the width adjust. |
||
220 | */ |
||
221 | public function getWidthAdjust() { |
||
224 | |||
225 | /** |
||
226 | * Get the x. |
||
227 | * |
||
228 | * @return integer Returns the x. |
||
229 | */ |
||
230 | public function getX() { |
||
233 | |||
234 | /** |
||
235 | * Get the y. |
||
236 | * |
||
237 | * @return integer Returns the y. |
||
238 | */ |
||
239 | public function getY() { |
||
242 | |||
243 | /** |
||
244 | * Serialize this instance. |
||
245 | * |
||
246 | * @return array Returns an array representing this instance. |
||
247 | */ |
||
248 | public function jsonSerialize() { |
||
251 | |||
252 | /** |
||
253 | * Set the align. |
||
254 | * |
||
255 | * @param string $align The align. |
||
256 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
257 | */ |
||
258 | public function setAlign($align) { |
||
268 | |||
269 | /** |
||
270 | * Set the floating. |
||
271 | * |
||
272 | * @param boolean $floating The floating. |
||
273 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
274 | */ |
||
275 | public function setFloating($floating) { |
||
279 | |||
280 | /** |
||
281 | * Set the margin. |
||
282 | * |
||
283 | * @param integer $margin The margin. |
||
284 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
285 | */ |
||
286 | public function setMargin($margin) { |
||
290 | |||
291 | /** |
||
292 | * Set the style. |
||
293 | * |
||
294 | * @param array $style The style. |
||
295 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
296 | */ |
||
297 | public function setStyle(array $style = null) { |
||
301 | |||
302 | /** |
||
303 | * Set the text. |
||
304 | * |
||
305 | * @param string $text The text. |
||
306 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
307 | */ |
||
308 | public function setText($text) { |
||
312 | |||
313 | /** |
||
314 | * Set the use HTML. |
||
315 | * |
||
316 | * @param boolean $useHTML The use HTML. |
||
317 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
318 | */ |
||
319 | public function setUseHTML($useHTML) { |
||
323 | |||
324 | /** |
||
325 | * Set the vertical align. |
||
326 | * |
||
327 | * @param string $verticalAlign The vertical align. |
||
328 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
329 | */ |
||
330 | public function setVerticalAlign($verticalAlign) { |
||
340 | |||
341 | /** |
||
342 | * Set the width adjust. |
||
343 | * |
||
344 | * @param integer $widthAdjust The width adjust. |
||
345 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
346 | */ |
||
347 | public function setWidthAdjust($widthAdjust) { |
||
351 | |||
352 | /** |
||
353 | * Set the x. |
||
354 | * |
||
355 | * @param integer $x The x. |
||
356 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
357 | */ |
||
358 | public function setX($x) { |
||
362 | |||
363 | /** |
||
364 | * Set the y. |
||
365 | * |
||
366 | * @param integer $y The y. |
||
367 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsTitle Returns the highcharts title. |
||
368 | */ |
||
369 | public function setY($y) { |
||
373 | |||
374 | /** |
||
375 | * Convert into an array representing this instance. |
||
376 | * |
||
377 | * @return array Returns an array representing this instance. |
||
378 | */ |
||
379 | public function toArray() { |
||
417 | |||
418 | } |
||
419 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..