Test Failed
Push — master ( e6b57e...dd7c2d )
by Christophe
07:44
created

AreaChartOptions   B

Complexity

Total Complexity 7

Size/Duplication

Total Lines 113
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 16

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 16
dl 0
loc 113
ccs 0
cts 0
cp 0
rs 8.4614
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getAnimation() 0 4 1
A getAnnotations() 0 4 1
A getCrosshair() 0 4 1
A getExplorer() 0 4 1
A getHAxis() 0 4 1
A getLegend() 0 4 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\AreaChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedAnimation;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedHAxis;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedLegend;
8
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Annotations;
9
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AreaOpacityTrait;
10
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Crosshair;
11
use CMEN\GoogleChartsBundle\GoogleCharts\Options\DataOpacityTrait;
12
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Explorer;
13
use CMEN\GoogleChartsBundle\GoogleCharts\Options\FocusTargetTrait;
14
use CMEN\GoogleChartsBundle\GoogleCharts\Options\InterpolateNullsTrait;
15
use CMEN\GoogleChartsBundle\GoogleCharts\Options\IsStackedTrait;
16
use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineOptions;
17
use CMEN\GoogleChartsBundle\GoogleCharts\Options\OrientationTrait;
18
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ReverseCategoriesTrait;
19
use CMEN\GoogleChartsBundle\GoogleCharts\Options\SelectionModeTrait;
20
use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxesTrait;
21
22
/**
23
 * @author Christophe Meneses
24
 */
25
class AreaChartOptions extends LineOptions
26
{
27
    /**
28
     * @var AdvancedAnimation
29
     */
30
    protected $animation;
31
32
    /**
33
     * @var Annotations
34
     */
35
    protected $annotations;
36
37
    use AreaOpacityTrait;
38
39
    /**
40
     * @var Crosshair
41
     */
42
    protected $crosshair;
43
44
    use DataOpacityTrait;
45
46
    /**
47
     * @var Explorer
48
     */
49
    protected $explorer;
50
51
    use FocusTargetTrait;
52
53
    /**
54
     * @var AdvancedHAxis
55
     */
56
    protected $hAxis;
57
58
    use InterpolateNullsTrait;
59
60
    use IsStackedTrait;
61
62
    /**
63
     * @var AdvancedLegend
64
     */
65
    protected $legend;
66
67
    use OrientationTrait;
68
69
    use ReverseCategoriesTrait;
70
71
    use SelectionModeTrait;
72
73
    use VAxesTrait;
74
75
    /**
76
     * AreaChartOptions constructor.
77
     */
78
    public function __construct()
79
    {
80
        parent::__construct();
81
82
        $this->animation = new AdvancedAnimation();
83
        $this->annotations = new Annotations();
84
        $this->crosshair = new Crosshair();
85
        $this->explorer = new Explorer();
86
        $this->hAxis = new AdvancedHAxis();
87
        $this->legend = new AdvancedLegend();
88
    }
89
90
    /**
91
     * @return AdvancedAnimation
92
     */
93
    public function getAnimation()
94
    {
95
        return $this->animation;
96
    }
97
98
    /**
99
     * @return Annotations
100
     */
101
    public function getAnnotations()
102
    {
103
        return $this->annotations;
104
    }
105
106
    /**
107
     * @return Crosshair
108
     */
109
    public function getCrosshair()
110
    {
111
        return $this->crosshair;
112
    }
113
114
    /**
115
     * @return Explorer
116
     */
117
    public function getExplorer()
118
    {
119
        return $this->explorer;
120
    }
121
122
    /**
123
     * @return AdvancedHAxis
124
     */
125
    public function getHAxis()
126
    {
127
        return $this->hAxis;
128
    }
129
130
    /**
131
     * @return AdvancedLegend
132
     */
133
    public function getLegend()
134
    {
135
        return $this->legend;
136
    }
137
}
138