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

CandlestickChartOptions::setAggregationTarget()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\CandlestickChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedAnimation;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedChartOptions;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedHAxis;
8
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedLegend;
9
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedTooltip;
10
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AggregationTargetTrait;
11
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Bar;
12
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Candlestick;
13
use CMEN\GoogleChartsBundle\GoogleCharts\Options\FocusTargetTrait;
14
use CMEN\GoogleChartsBundle\GoogleCharts\Options\OrientationTrait;
15
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ReverseCategoriesTrait;
16
use CMEN\GoogleChartsBundle\GoogleCharts\Options\SelectionModeTrait;
17
use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxesTrait;
18
19
/**
20
 * @author Christophe Meneses
21
 */
22 View Code Duplication
class CandlestickChartOptions extends AdvancedChartOptions
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
23
{
24
    use AggregationTargetTrait;
25
26
    /**
27
     * @var AdvancedAnimation
28
     */
29
    protected $animation;
30
31
    /**
32
     * @var Bar
33
     */
34
    protected $bar;
35
36
    /**
37
     * @var Candlestick
38
     */
39
    protected $candlestick;
40
41
    use FocusTargetTrait;
42
43
    /**
44
     * @var AdvancedHAxis
45
     */
46
    protected $hAxis;
47
48
    /**
49
     * @var AdvancedLegend
50
     */
51
    protected $legend;
52
53
    use OrientationTrait;
54
55
    use ReverseCategoriesTrait;
56
57
    use SelectionModeTrait;
58
59
    /**
60
     * @var AdvancedTooltip
61
     */
62
    protected $tooltip;
63
64
    use VAxesTrait;
65
66
    /**
67
     * CandlestickChartOptions constructor.
68
     */
69
    public function __construct()
70
    {
71
        parent::__construct();
72
73
        $this->animation = new AdvancedAnimation();
74
        $this->bar = new Bar();
75
        $this->candlestick = new Candlestick();
76
        $this->hAxis = new AdvancedHAxis();
77
        $this->legend = new AdvancedLegend();
78
        $this->tooltip = new AdvancedTooltip();
79
    }
80
81
    /**
82
     * @return AdvancedAnimation
83
     */
84
    public function getAnimation()
85
    {
86
        return $this->animation;
87
    }
88
89
    /**
90
     * @return Bar
91
     */
92
    public function getBar()
93
    {
94
        return $this->bar;
95
    }
96
97
    /**
98
     * @return Candlestick
99
     */
100
    public function getCandlestick()
101
    {
102
        return $this->candlestick;
103
    }
104
105
    /**
106
     * @return AdvancedHAxis
107
     */
108
    public function getHAxis()
109
    {
110
        return $this->hAxis;
111
    }
112
113
    /**
114
     * @return AdvancedLegend
115
     */
116
    public function getLegend()
117
    {
118
        return $this->legend;
119
    }
120
121
    /**
122
     * @return AdvancedTooltip
123
     */
124
    public function getTooltip()
125
    {
126
        return $this->tooltip;
127
    }
128
}
129