Code Duplication    Length = 107-109 lines in 2 locations

GoogleCharts/Options/CandlestickChart/CandlestickChartOptions.php 1 location

@@ 22-128 (lines=107) @@
19
/**
20
 * @author Christophe Meneses
21
 */
22
class CandlestickChartOptions extends AdvancedChartOptions
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

GoogleCharts/Options/Histogram/HistogramOptions.php 1 location

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