SteppedAreaChartOptions::getTooltip()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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