1 | <?php |
||
25 | final class HighchartsStackLabels implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Align. |
||
29 | * |
||
30 | * @var string |
||
31 | * @since 2.1.5 |
||
32 | */ |
||
33 | private $align; |
||
34 | |||
35 | /** |
||
36 | * Enabled. |
||
37 | * |
||
38 | * @var boolean |
||
39 | * @since 2.1.5 |
||
40 | */ |
||
41 | private $enabled = false; |
||
42 | |||
43 | /** |
||
44 | * Format. |
||
45 | * |
||
46 | * @var string |
||
47 | * @since 3.0.2 |
||
48 | */ |
||
49 | private $format = "{total}"; |
||
50 | |||
51 | /** |
||
52 | * Formatter. |
||
53 | * |
||
54 | * @var string |
||
55 | * @since 2.1.5 |
||
56 | */ |
||
57 | private $formatter; |
||
58 | |||
59 | /** |
||
60 | * Rotation. |
||
61 | * |
||
62 | * @var integer |
||
63 | * @since 2.1.5 |
||
64 | */ |
||
65 | private $rotation = 0; |
||
66 | |||
67 | /** |
||
68 | * Style. |
||
69 | * |
||
70 | * @var array |
||
71 | * @since 2.1.5 |
||
72 | */ |
||
73 | private $style = ["color" => "#000000", "fontSize" => "11px", "fontWeight" => "bold", "textShadow" => "1px 1px contrast, -1px -1px contrast, -1px 1px contrast, 1px -1px contrast"]; |
||
74 | |||
75 | /** |
||
76 | * Text align. |
||
77 | * |
||
78 | * @var string |
||
79 | * @since 2.1.5 |
||
80 | */ |
||
81 | private $textAlign; |
||
82 | |||
83 | /** |
||
84 | * Use HTML. |
||
85 | * |
||
86 | * @var boolean |
||
87 | * @since 3.0 |
||
88 | */ |
||
89 | private $useHTML = false; |
||
90 | |||
91 | /** |
||
92 | * Vertical align. |
||
93 | * |
||
94 | * @var string |
||
95 | * @since 2.1.5 |
||
96 | */ |
||
97 | private $verticalAlign; |
||
98 | |||
99 | /** |
||
100 | * X. |
||
101 | * |
||
102 | * @var integer |
||
103 | * @since 2.1.5 |
||
104 | */ |
||
105 | private $x; |
||
106 | |||
107 | /** |
||
108 | * Y. |
||
109 | * |
||
110 | * @var integer |
||
111 | * @since 2.1.5 |
||
112 | */ |
||
113 | private $y; |
||
114 | |||
115 | /** |
||
116 | * Constructor. |
||
117 | * |
||
118 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
119 | */ |
||
120 | public function __construct($ignoreDefaultValues = true) { |
||
125 | |||
126 | /** |
||
127 | * Clear. |
||
128 | * |
||
129 | * @return void |
||
130 | */ |
||
131 | public function clear() { |
||
166 | |||
167 | /** |
||
168 | * Get the align. |
||
169 | * |
||
170 | * @return string Returns the align. |
||
171 | */ |
||
172 | public function getAlign() { |
||
175 | |||
176 | /** |
||
177 | * Get the enabled. |
||
178 | * |
||
179 | * @return boolean Returns the enabled. |
||
180 | */ |
||
181 | public function getEnabled() { |
||
184 | |||
185 | /** |
||
186 | * Get the format. |
||
187 | * |
||
188 | * @return string Returns the format. |
||
189 | */ |
||
190 | public function getFormat() { |
||
193 | |||
194 | /** |
||
195 | * Get the formatter. |
||
196 | * |
||
197 | * @return string Returns the formatter. |
||
198 | */ |
||
199 | public function getFormatter() { |
||
202 | |||
203 | /** |
||
204 | * Get the rotation. |
||
205 | * |
||
206 | * @return integer Returns the rotation. |
||
207 | */ |
||
208 | public function getRotation() { |
||
211 | |||
212 | /** |
||
213 | * Get the style. |
||
214 | * |
||
215 | * @return array Returns the style. |
||
216 | */ |
||
217 | public function getStyle() { |
||
220 | |||
221 | /** |
||
222 | * Get the text align. |
||
223 | * |
||
224 | * @return string Returns the text align. |
||
225 | */ |
||
226 | public function getTextAlign() { |
||
229 | |||
230 | /** |
||
231 | * Get the use HTML. |
||
232 | * |
||
233 | * @return boolean Returns the use HTML. |
||
234 | */ |
||
235 | public function getUseHTML() { |
||
238 | |||
239 | /** |
||
240 | * Get the vertical align. |
||
241 | * |
||
242 | * @return string Returns the vertical align. |
||
243 | */ |
||
244 | public function getVerticalAlign() { |
||
247 | |||
248 | /** |
||
249 | * Get the x. |
||
250 | * |
||
251 | * @return integer Returns the x. |
||
252 | */ |
||
253 | public function getX() { |
||
256 | |||
257 | /** |
||
258 | * Get the y. |
||
259 | * |
||
260 | * @return integer Returns the y. |
||
261 | */ |
||
262 | public function getY() { |
||
265 | |||
266 | /** |
||
267 | * Serialize this instance. |
||
268 | * |
||
269 | * @return array Returns an array representing this instance. |
||
270 | */ |
||
271 | public function jsonSerialize() { |
||
274 | |||
275 | /** |
||
276 | * Set the align. |
||
277 | * |
||
278 | * @param string $align The align. |
||
279 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
280 | */ |
||
281 | public function setAlign($align) { |
||
291 | |||
292 | /** |
||
293 | * Set the enabled. |
||
294 | * |
||
295 | * @param boolean $enabled The enabled. |
||
296 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
297 | */ |
||
298 | public function setEnabled($enabled) { |
||
302 | |||
303 | /** |
||
304 | * Set the format. |
||
305 | * |
||
306 | * @param string $format The format. |
||
307 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
308 | */ |
||
309 | public function setFormat($format) { |
||
313 | |||
314 | /** |
||
315 | * Set the formatter. |
||
316 | * |
||
317 | * @param string $formatter The formatter. |
||
318 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
319 | */ |
||
320 | public function setFormatter($formatter) { |
||
324 | |||
325 | /** |
||
326 | * Set the rotation. |
||
327 | * |
||
328 | * @param integer $rotation The rotation. |
||
329 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
330 | */ |
||
331 | public function setRotation($rotation) { |
||
335 | |||
336 | /** |
||
337 | * Set the style. |
||
338 | * |
||
339 | * @param array $style The style. |
||
340 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
341 | */ |
||
342 | public function setStyle(array $style = null) { |
||
346 | |||
347 | /** |
||
348 | * Set the text align. |
||
349 | * |
||
350 | * @param string $textAlign The text align. |
||
351 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
352 | */ |
||
353 | public function setTextAlign($textAlign) { |
||
363 | |||
364 | /** |
||
365 | * Set the use HTML. |
||
366 | * |
||
367 | * @param boolean $useHTML The use HTML. |
||
368 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
369 | */ |
||
370 | public function setUseHTML($useHTML) { |
||
374 | |||
375 | /** |
||
376 | * Set the vertical align. |
||
377 | * |
||
378 | * @param string $verticalAlign The vertical align. |
||
379 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
380 | */ |
||
381 | public function setVerticalAlign($verticalAlign) { |
||
391 | |||
392 | /** |
||
393 | * Set the x. |
||
394 | * |
||
395 | * @param integer $x The x. |
||
396 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
397 | */ |
||
398 | public function setX($x) { |
||
402 | |||
403 | /** |
||
404 | * Set the y. |
||
405 | * |
||
406 | * @param integer $y The y. |
||
407 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\YAxis\HighchartsStackLabels Returns the highcharts stack labels. |
||
408 | */ |
||
409 | public function setY($y) { |
||
413 | |||
414 | /** |
||
415 | * Convert into an array representing this instance. |
||
416 | * |
||
417 | * @return array Returns an array representing this instance. |
||
418 | */ |
||
419 | public function toArray() { |
||
460 | |||
461 | } |
||
462 |
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..