HighchartsDataLabels   F
last analyzed

Complexity

Total Complexity 60

Size/Duplication

Total Lines 898
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 60
lcom 1
cbo 1
dl 0
loc 898
rs 3.302
c 0
b 0
f 0

54 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
B clear() 0 77 1
A getAlign() 0 3 1
A getAllowOverlap() 0 3 1
A getBackgroundColor() 0 3 1
A getBorderColor() 0 3 1
A getBorderRadius() 0 3 1
A getBorderWidth() 0 3 1
A getClassName() 0 3 1
A getColor() 0 3 1
A getCrop() 0 3 1
A getDefer() 0 3 1
A getEnabled() 0 3 1
A getFormat() 0 3 1
A getFormatter() 0 3 1
A getInside() 0 3 1
A getOverflow() 0 3 1
A getPadding() 0 3 1
A getRotation() 0 3 1
A getShadow() 0 3 1
A getShape() 0 3 1
A getStyle() 0 3 1
A getUseHTML() 0 3 1
A getVerticalAlign() 0 3 1
A getX() 0 3 1
A getY() 0 3 1
A getZIndex() 0 3 1
A jsonSerialize() 0 3 1
A setAlign() 0 4 1
A setAllowOverlap() 0 4 1
A setBackgroundColor() 0 4 1
A setBorderColor() 0 4 1
A setBorderRadius() 0 4 1
A setBorderWidth() 0 4 1
A setClassName() 0 4 1
A setColor() 0 4 1
A setCrop() 0 4 1
A setDefer() 0 4 1
A setEnabled() 0 4 1
A setFormat() 0 4 1
A setFormatter() 0 4 1
A setInside() 0 4 1
A setOverflow() 0 9 3
A setPadding() 0 4 1
A setRotation() 0 4 1
A setShadow() 0 4 1
A setShape() 0 4 1
A setStyle() 0 4 1
A setUseHTML() 0 4 1
A setVerticalAlign() 0 10 4
A setX() 0 4 1
A setY() 0 4 1
A setZIndex() 0 4 1
B toArray() 0 83 1

How to fix   Complexity   

Complex Class

Complex classes like HighchartsDataLabels often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use HighchartsDataLabels, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
/**
4
 * This file is part of the highcharts-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar;
13
14
use JsonSerializable;
15
use WBW\Library\Core\Utility\Argument\ArrayUtility;
16
17
/**
18
 * Highcharts data labels.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar
22
 * @version 5.0.14
23
 * @final
24
 */
25
final class HighchartsDataLabels implements JsonSerializable {
26
27
    /**
28
     * Align.
29
     *
30
     * @var string
31
     */
32
    private $align = "left";
33
34
    /**
35
     * Allow overlap.
36
     *
37
     * @var boolean
38
     * @since 4.1.0
39
     */
40
    private $allowOverlap = false;
41
42
    /**
43
     * Background color.
44
     *
45
     * @var string
46
     * @since 2.2.1
47
     */
48
    private $backgroundColor;
49
50
    /**
51
     * Border color.
52
     *
53
     * @var string
54
     * @since 2.2.1
55
     */
56
    private $borderColor;
57
58
    /**
59
     * Border radius.
60
     *
61
     * @var integer
62
     * @since 2.2.1
63
     */
64
    private $borderRadius = 0;
65
66
    /**
67
     * Border width.
68
     *
69
     * @var integer
70
     * @since 2.2.1
71
     */
72
    private $borderWidth = 0;
73
74
    /**
75
     * Class name.
76
     *
77
     * @var string
78
     * @since 5.0.0
79
     */
80
    private $className;
81
82
    /**
83
     * Color.
84
     *
85
     * @var string
86
     */
87
    private $color;
88
89
    /**
90
     * Crop.
91
     *
92
     * @var boolean
93
     * @since 2.3.3
94
     */
95
    private $crop = true;
96
97
    /**
98
     * Defer.
99
     *
100
     * @var boolean
101
     * @since 4.0
102
     */
103
    private $defer = true;
104
105
    /**
106
     * Enabled.
107
     *
108
     * @var boolean
109
     */
110
    private $enabled = false;
111
112
    /**
113
     * Format.
114
     *
115
     * @var string
116
     * @since 3.0
117
     */
118
    private $format = "{y}";
119
120
    /**
121
     * Formatter.
122
     *
123
     * @var string
124
     */
125
    private $formatter;
126
127
    /**
128
     * Inside.
129
     *
130
     * @var boolean
131
     * @since 3.0
132
     */
133
    private $inside;
134
135
    /**
136
     * Overflow.
137
     *
138
     * @var string
139
     * @since 3.0.6
140
     */
141
    private $overflow = "justify";
142
143
    /**
144
     * Padding.
145
     *
146
     * @var integer
147
     * @since 2.2.1
148
     */
149
    private $padding = 5;
150
151
    /**
152
     * Rotation.
153
     *
154
     * @var integer
155
     */
156
    private $rotation = 0;
157
158
    /**
159
     * Shadow.
160
     *
161
     * @var boolean|array
162
     * @since 2.2.1
163
     */
164
    private $shadow = false;
165
166
    /**
167
     * Shape.
168
     *
169
     * @var string
170
     * @since 4.1.2
171
     */
172
    private $shape = "square";
173
174
    /**
175
     * Style.
176
     *
177
     * @var array
178
     * @since 4.1.0
179
     */
180
    private $style = ["color" => "contrast", "fontSize" => "11px", "fontWeight" => "bold", "textOutline" => "1px contrast"];
181
182
    /**
183
     * Use HTML.
184
     *
185
     * @var boolean
186
     */
187
    private $useHTML = false;
188
189
    /**
190
     * Vertical align.
191
     *
192
     * @var string
193
     * @since 2.3.3
194
     */
195
    private $verticalAlign;
196
197
    /**
198
     * X.
199
     *
200
     * @var integer
201
     */
202
    private $x = 5;
203
204
    /**
205
     * Y.
206
     *
207
     * @var integer
208
     */
209
    private $y = -6;
210
211
    /**
212
     * Z index.
213
     *
214
     * @var integer
215
     * @since 2.3.5
216
     */
217
    private $zIndex = 6;
218
219
    /**
220
     * Constructor.
221
     *
222
     * @param boolean $ignoreDefaultValues Ignore the default values.
223
     */
224
    public function __construct($ignoreDefaultValues = true) {
225
        if (true === $ignoreDefaultValues) {
226
            $this->clear();
227
        }
228
    }
229
230
    /**
231
     * Clear.
232
     *
233
     * @return void
234
     */
235
    public function clear() {
236
237
        // Clear the align.
238
        $this->align = null;
239
240
        // Clear the allow overlap.
241
        $this->allowOverlap = null;
242
243
        // Clear the background color.
244
        $this->backgroundColor = null;
245
246
        // Clear the border color.
247
        $this->borderColor = null;
248
249
        // Clear the border radius.
250
        $this->borderRadius = null;
251
252
        // Clear the border width.
253
        $this->borderWidth = null;
254
255
        // Clear the class name.
256
        $this->className = null;
257
258
        // Clear the color.
259
        $this->color = null;
260
261
        // Clear the crop.
262
        $this->crop = null;
263
264
        // Clear the defer.
265
        $this->defer = null;
266
267
        // Clear the enabled.
268
        $this->enabled = null;
269
270
        // Clear the format.
271
        $this->format = null;
272
273
        // Clear the formatter.
274
        $this->formatter = null;
275
276
        // Clear the inside.
277
        $this->inside = null;
278
279
        // Clear the overflow.
280
        $this->overflow = null;
281
282
        // Clear the padding.
283
        $this->padding = null;
284
285
        // Clear the rotation.
286
        $this->rotation = null;
287
288
        // Clear the shadow.
289
        $this->shadow = null;
290
291
        // Clear the shape.
292
        $this->shape = null;
293
294
        // Clear the style.
295
        $this->style = null;
0 ignored issues
show
Documentation Bug introduced by
It seems like null of type null is incompatible with the declared type array of property $style.

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..

Loading history...
296
297
        // Clear the use HTML.
298
        $this->useHTML = null;
299
300
        // Clear the vertical align.
301
        $this->verticalAlign = null;
302
303
        // Clear the x.
304
        $this->x = null;
305
306
        // Clear the y.
307
        $this->y = null;
308
309
        // Clear the z index.
310
        $this->zIndex = null;
311
    }
312
313
    /**
314
     * Get the align.
315
     *
316
     * @return string Returns the align.
317
     */
318
    public function getAlign() {
319
        return $this->align;
320
    }
321
322
    /**
323
     * Get the allow overlap.
324
     *
325
     * @return boolean Returns the allow overlap.
326
     */
327
    public function getAllowOverlap() {
328
        return $this->allowOverlap;
329
    }
330
331
    /**
332
     * Get the background color.
333
     *
334
     * @return string Returns the background color.
335
     */
336
    public function getBackgroundColor() {
337
        return $this->backgroundColor;
338
    }
339
340
    /**
341
     * Get the border color.
342
     *
343
     * @return string Returns the border color.
344
     */
345
    public function getBorderColor() {
346
        return $this->borderColor;
347
    }
348
349
    /**
350
     * Get the border radius.
351
     *
352
     * @return integer Returns the border radius.
353
     */
354
    public function getBorderRadius() {
355
        return $this->borderRadius;
356
    }
357
358
    /**
359
     * Get the border width.
360
     *
361
     * @return integer Returns the border width.
362
     */
363
    public function getBorderWidth() {
364
        return $this->borderWidth;
365
    }
366
367
    /**
368
     * Get the class name.
369
     *
370
     * @return string Returns the class name.
371
     */
372
    public function getClassName() {
373
        return $this->className;
374
    }
375
376
    /**
377
     * Get the color.
378
     *
379
     * @return string Returns the color.
380
     */
381
    public function getColor() {
382
        return $this->color;
383
    }
384
385
    /**
386
     * Get the crop.
387
     *
388
     * @return boolean Returns the crop.
389
     */
390
    public function getCrop() {
391
        return $this->crop;
392
    }
393
394
    /**
395
     * Get the defer.
396
     *
397
     * @return boolean Returns the defer.
398
     */
399
    public function getDefer() {
400
        return $this->defer;
401
    }
402
403
    /**
404
     * Get the enabled.
405
     *
406
     * @return boolean Returns the enabled.
407
     */
408
    public function getEnabled() {
409
        return $this->enabled;
410
    }
411
412
    /**
413
     * Get the format.
414
     *
415
     * @return string Returns the format.
416
     */
417
    public function getFormat() {
418
        return $this->format;
419
    }
420
421
    /**
422
     * Get the formatter.
423
     *
424
     * @return string Returns the formatter.
425
     */
426
    public function getFormatter() {
427
        return $this->formatter;
428
    }
429
430
    /**
431
     * Get the inside.
432
     *
433
     * @return boolean Returns the inside.
434
     */
435
    public function getInside() {
436
        return $this->inside;
437
    }
438
439
    /**
440
     * Get the overflow.
441
     *
442
     * @return string Returns the overflow.
443
     */
444
    public function getOverflow() {
445
        return $this->overflow;
446
    }
447
448
    /**
449
     * Get the padding.
450
     *
451
     * @return integer Returns the padding.
452
     */
453
    public function getPadding() {
454
        return $this->padding;
455
    }
456
457
    /**
458
     * Get the rotation.
459
     *
460
     * @return integer Returns the rotation.
461
     */
462
    public function getRotation() {
463
        return $this->rotation;
464
    }
465
466
    /**
467
     * Get the shadow.
468
     *
469
     * @return boolean|array Returns the shadow.
470
     */
471
    public function getShadow() {
472
        return $this->shadow;
473
    }
474
475
    /**
476
     * Get the shape.
477
     *
478
     * @return string Returns the shape.
479
     */
480
    public function getShape() {
481
        return $this->shape;
482
    }
483
484
    /**
485
     * Get the style.
486
     *
487
     * @return array Returns the style.
488
     */
489
    public function getStyle() {
490
        return $this->style;
491
    }
492
493
    /**
494
     * Get the use HTML.
495
     *
496
     * @return boolean Returns the use HTML.
497
     */
498
    public function getUseHTML() {
499
        return $this->useHTML;
500
    }
501
502
    /**
503
     * Get the vertical align.
504
     *
505
     * @return string Returns the vertical align.
506
     */
507
    public function getVerticalAlign() {
508
        return $this->verticalAlign;
509
    }
510
511
    /**
512
     * Get the x.
513
     *
514
     * @return integer Returns the x.
515
     */
516
    public function getX() {
517
        return $this->x;
518
    }
519
520
    /**
521
     * Get the y.
522
     *
523
     * @return integer Returns the y.
524
     */
525
    public function getY() {
526
        return $this->y;
527
    }
528
529
    /**
530
     * Get the z index.
531
     *
532
     * @return integer Returns the z index.
533
     */
534
    public function getZIndex() {
535
        return $this->zIndex;
536
    }
537
538
    /**
539
     * Serialize this instance.
540
     *
541
     * @return array Returns an array representing this instance.
542
     */
543
    public function jsonSerialize() {
544
        return $this->toArray();
545
    }
546
547
    /**
548
     * Set the align.
549
     *
550
     * @param string $align The align.
551
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
552
     */
553
    public function setAlign($align) {
554
        $this->align = $align;
555
        return $this;
556
    }
557
558
    /**
559
     * Set the allow overlap.
560
     *
561
     * @param boolean $allowOverlap The allow overlap.
562
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
563
     */
564
    public function setAllowOverlap($allowOverlap) {
565
        $this->allowOverlap = $allowOverlap;
566
        return $this;
567
    }
568
569
    /**
570
     * Set the background color.
571
     *
572
     * @param string $backgroundColor The background color.
573
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
574
     */
575
    public function setBackgroundColor($backgroundColor) {
576
        $this->backgroundColor = $backgroundColor;
577
        return $this;
578
    }
579
580
    /**
581
     * Set the border color.
582
     *
583
     * @param string $borderColor The border color.
584
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
585
     */
586
    public function setBorderColor($borderColor) {
587
        $this->borderColor = $borderColor;
588
        return $this;
589
    }
590
591
    /**
592
     * Set the border radius.
593
     *
594
     * @param integer $borderRadius The border radius.
595
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
596
     */
597
    public function setBorderRadius($borderRadius) {
598
        $this->borderRadius = $borderRadius;
599
        return $this;
600
    }
601
602
    /**
603
     * Set the border width.
604
     *
605
     * @param integer $borderWidth The border width.
606
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
607
     */
608
    public function setBorderWidth($borderWidth) {
609
        $this->borderWidth = $borderWidth;
610
        return $this;
611
    }
612
613
    /**
614
     * Set the class name.
615
     *
616
     * @param string $className The class name.
617
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
618
     */
619
    public function setClassName($className) {
620
        $this->className = $className;
621
        return $this;
622
    }
623
624
    /**
625
     * Set the color.
626
     *
627
     * @param string $color The color.
628
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
629
     */
630
    public function setColor($color) {
631
        $this->color = $color;
632
        return $this;
633
    }
634
635
    /**
636
     * Set the crop.
637
     *
638
     * @param boolean $crop The crop.
639
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
640
     */
641
    public function setCrop($crop) {
642
        $this->crop = $crop;
643
        return $this;
644
    }
645
646
    /**
647
     * Set the defer.
648
     *
649
     * @param boolean $defer The defer.
650
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
651
     */
652
    public function setDefer($defer) {
653
        $this->defer = $defer;
654
        return $this;
655
    }
656
657
    /**
658
     * Set the enabled.
659
     *
660
     * @param boolean $enabled The enabled.
661
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
662
     */
663
    public function setEnabled($enabled) {
664
        $this->enabled = $enabled;
665
        return $this;
666
    }
667
668
    /**
669
     * Set the format.
670
     *
671
     * @param string $format The format.
672
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
673
     */
674
    public function setFormat($format) {
675
        $this->format = $format;
676
        return $this;
677
    }
678
679
    /**
680
     * Set the formatter.
681
     *
682
     * @param string $formatter The formatter.
683
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
684
     */
685
    public function setFormatter($formatter) {
686
        $this->formatter = $formatter;
687
        return $this;
688
    }
689
690
    /**
691
     * Set the inside.
692
     *
693
     * @param boolean $inside The inside.
694
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
695
     */
696
    public function setInside($inside) {
697
        $this->inside = $inside;
698
        return $this;
699
    }
700
701
    /**
702
     * Set the overflow.
703
     *
704
     * @param string $overflow The overflow.
705
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
706
     */
707
    public function setOverflow($overflow) {
708
        switch ($overflow) {
709
            case "justify":
710
            case "none":
711
            $this->overflow = $overflow;
712
            break;
713
        }
714
        return $this;
715
    }
716
717
    /**
718
     * Set the padding.
719
     *
720
     * @param integer $padding The padding.
721
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
722
     */
723
    public function setPadding($padding) {
724
        $this->padding = $padding;
725
        return $this;
726
    }
727
728
    /**
729
     * Set the rotation.
730
     *
731
     * @param integer $rotation The rotation.
732
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
733
     */
734
    public function setRotation($rotation) {
735
        $this->rotation = $rotation;
736
        return $this;
737
    }
738
739
    /**
740
     * Set the shadow.
741
     *
742
     * @param boolean|array $shadow The shadow.
743
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
744
     */
745
    public function setShadow($shadow) {
746
        $this->shadow = $shadow;
747
        return $this;
748
    }
749
750
    /**
751
     * Set the shape.
752
     *
753
     * @param string $shape The shape.
754
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
755
     */
756
    public function setShape($shape) {
757
        $this->shape = $shape;
758
        return $this;
759
    }
760
761
    /**
762
     * Set the style.
763
     *
764
     * @param array $style The style.
765
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
766
     */
767
    public function setStyle(array $style = null) {
768
        $this->style = $style;
0 ignored issues
show
Documentation Bug introduced by
It seems like $style can be null. However, the property $style is declared as array. Maybe change the type of the property to array|null or add a type check?

Our type inference engine has found an assignment of a scalar value (like a string, an integer or null) to a property which is an array.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.

To type hint that a parameter can be either an array or null, you can set a type hint of array and a default value of null. The PHP interpreter will then accept both an array or null for that parameter.

function aContainsB(array $needle = null, array  $haystack) {
    if (!$needle) {
        return false;
    }

    return array_intersect($haystack, $needle) == $haystack;
}

The function can be called with either null or an array for the parameter $needle but will only accept an array as $haystack.

Loading history...
769
        return $this;
770
    }
771
772
    /**
773
     * Set the use HTML.
774
     *
775
     * @param boolean $useHTML The use HTML.
776
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
777
     */
778
    public function setUseHTML($useHTML) {
779
        $this->useHTML = $useHTML;
780
        return $this;
781
    }
782
783
    /**
784
     * Set the vertical align.
785
     *
786
     * @param string $verticalAlign The vertical align.
787
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
788
     */
789
    public function setVerticalAlign($verticalAlign) {
790
        switch ($verticalAlign) {
791
            case "bottom":
792
            case "middle":
793
            case "top":
794
            $this->verticalAlign = $verticalAlign;
795
            break;
796
        }
797
        return $this;
798
    }
799
800
    /**
801
     * Set the x.
802
     *
803
     * @param integer $x The x.
804
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
805
     */
806
    public function setX($x) {
807
        $this->x = $x;
808
        return $this;
809
    }
810
811
    /**
812
     * Set the y.
813
     *
814
     * @param integer $y The y.
815
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
816
     */
817
    public function setY($y) {
818
        $this->y = $y;
819
        return $this;
820
    }
821
822
    /**
823
     * Set the z index.
824
     *
825
     * @param integer $zIndex The z index.
826
     * @return \WBW\Bundle\HighchartsBundle\API\Chart\Series\Bar\HighchartsDataLabels Returns the highcharts data labels.
827
     */
828
    public function setZIndex($zIndex) {
829
        $this->zIndex = $zIndex;
830
        return $this;
831
    }
832
833
    /**
834
     * Convert into an array representing this instance.
835
     *
836
     * @return array Returns an array representing this instance.
837
     */
838
    public function toArray() {
839
840
        // Initialize the output.
841
        $output = [];
842
843
        // Set the align.
844
        ArrayUtility::set($output, "align", $this->align, [null]);
845
846
        // Set the allow overlap.
847
        ArrayUtility::set($output, "allowOverlap", $this->allowOverlap, [null]);
848
849
        // Set the background color.
850
        ArrayUtility::set($output, "backgroundColor", $this->backgroundColor, [null]);
851
852
        // Set the border color.
853
        ArrayUtility::set($output, "borderColor", $this->borderColor, [null]);
854
855
        // Set the border radius.
856
        ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]);
857
858
        // Set the border width.
859
        ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]);
860
861
        // Set the class name.
862
        ArrayUtility::set($output, "className", $this->className, [null]);
863
864
        // Set the color.
865
        ArrayUtility::set($output, "color", $this->color, [null]);
866
867
        // Set the crop.
868
        ArrayUtility::set($output, "crop", $this->crop, [null]);
869
870
        // Set the defer.
871
        ArrayUtility::set($output, "defer", $this->defer, [null]);
872
873
        // Set the enabled.
874
        ArrayUtility::set($output, "enabled", $this->enabled, [null]);
875
876
        // Set the format.
877
        ArrayUtility::set($output, "format", $this->format, [null]);
878
879
        // Set the formatter.
880
        ArrayUtility::set($output, "formatter", $this->formatter, [null]);
881
882
        // Set the inside.
883
        ArrayUtility::set($output, "inside", $this->inside, [null]);
884
885
        // Set the overflow.
886
        ArrayUtility::set($output, "overflow", $this->overflow, [null]);
887
888
        // Set the padding.
889
        ArrayUtility::set($output, "padding", $this->padding, [null]);
890
891
        // Set the rotation.
892
        ArrayUtility::set($output, "rotation", $this->rotation, [null]);
893
894
        // Set the shadow.
895
        ArrayUtility::set($output, "shadow", $this->shadow, [null]);
896
897
        // Set the shape.
898
        ArrayUtility::set($output, "shape", $this->shape, [null]);
899
900
        // Set the style.
901
        ArrayUtility::set($output, "style", $this->style, [null]);
902
903
        // Set the use HTML.
904
        ArrayUtility::set($output, "useHTML", $this->useHTML, [null]);
905
906
        // Set the vertical align.
907
        ArrayUtility::set($output, "verticalAlign", $this->verticalAlign, [null]);
908
909
        // Set the x.
910
        ArrayUtility::set($output, "x", $this->x, [null]);
911
912
        // Set the y.
913
        ArrayUtility::set($output, "y", $this->y, [null]);
914
915
        // Set the z index.
916
        ArrayUtility::set($output, "zIndex", $this->zIndex, [null]);
917
918
        // Return the output.
919
        return $output;
920
    }
921
922
}
923