SteppedAreaChartOptions   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 8
Bugs 0 Features 0
Metric Value
eloc 24
c 8
b 0
f 0
dl 0
loc 82
ccs 0
cts 17
cp 0
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getTooltip() 0 3 1
A __construct() 0 8 1
A getLegend() 0 3 1
A getHAxis() 0 3 1
A setConnectSteps() 0 5 1
A getAnimation() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\SteppedAreaChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedAnimation;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedChartOptions;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedLegend;
8
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedTooltip;
9
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AggregationTargetTrait;
10
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AreaOpacityTrait;
11
use CMEN\GoogleChartsBundle\GoogleCharts\Options\IsStackedTrait;
12
use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineDashStyleTrait;
13
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ReverseCategoriesTrait;
14
use CMEN\GoogleChartsBundle\GoogleCharts\Options\SelectionModeTrait;
15
use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxesTrait;
16
17
/**
18
 * @author Christophe Meneses
19
 */
20
class SteppedAreaChartOptions extends AdvancedChartOptions
21
{
22
    use AggregationTargetTrait;
23
24
    use AreaOpacityTrait;
25
26
    use IsStackedTrait;
27
28
    use LineDashStyleTrait;
29
30
    use ReverseCategoriesTrait;
31
32
    use SelectionModeTrait;
33
34
    use VAxesTrait;
35
36
    /**
37
     * @var AdvancedAnimation
38
     */
39
    protected $animation;
40
41
    /**
42
     * If set to true, will connect the steps to form a stepped line. Otherwise, only a top line appears. The default
43
     * is to connect the steps.
44
     *
45
     * @var bool
46
     */
47
    protected $connectSteps;
48
49
    /**
50
     * @var HAxis
51
     */
52
    protected $hAxis;
53
54
    /**
55
     * @var AdvancedLegend
56
     */
57
    protected $legend;
58
59
    /**
60
     * @var AdvancedTooltip
61
     */
62
    protected $tooltip;
63
64
    public function __construct()
65
    {
66
        parent::__construct();
67
68
        $this->animation = new AdvancedAnimation();
69
        $this->hAxis = new HAxis();
70
        $this->legend = new AdvancedLegend();
71
        $this->tooltip = new AdvancedTooltip();
72
    }
73
74
    public function getAnimation(): AdvancedAnimation
75
    {
76
        return $this->animation;
77
    }
78
79
    public function getHAxis(): HAxis
80
    {
81
        return $this->hAxis;
82
    }
83
84
    public function getLegend(): AdvancedLegend
85
    {
86
        return $this->legend;
87
    }
88
89
    public function getTooltip(): AdvancedTooltip
90
    {
91
        return $this->tooltip;
92
    }
93
94
    /**
95
     * @return $this
96
     */
97
    public function setConnectSteps(bool $connectSteps)
98
    {
99
        $this->connectSteps = $connectSteps;
100
101
        return $this;
102
    }
103
}
104