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
|
|
|
class CandlestickChartOptions extends AdvancedChartOptions |
23
|
|
|
{ |
24
|
|
|
use AggregationTargetTrait; |
25
|
|
|
|
26
|
|
|
use FocusTargetTrait; |
27
|
|
|
|
28
|
|
|
use OrientationTrait; |
29
|
|
|
|
30
|
|
|
use ReverseCategoriesTrait; |
31
|
|
|
|
32
|
|
|
use SelectionModeTrait; |
33
|
|
|
|
34
|
|
|
use VAxesTrait; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var AdvancedAnimation |
38
|
|
|
*/ |
39
|
|
|
protected $animation; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var Bar |
43
|
|
|
*/ |
44
|
|
|
protected $bar; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var Candlestick |
48
|
|
|
*/ |
49
|
|
|
protected $candlestick; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var AdvancedHAxis |
53
|
|
|
*/ |
54
|
|
|
protected $hAxis; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var AdvancedLegend |
58
|
|
|
*/ |
59
|
|
|
protected $legend; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var AdvancedTooltip |
63
|
|
|
*/ |
64
|
|
|
protected $tooltip; |
65
|
|
|
|
66
|
|
|
public function __construct() |
67
|
|
|
{ |
68
|
|
|
parent::__construct(); |
69
|
|
|
|
70
|
|
|
$this->animation = new AdvancedAnimation(); |
71
|
|
|
$this->bar = new Bar(); |
72
|
|
|
$this->candlestick = new Candlestick(); |
73
|
|
|
$this->hAxis = new AdvancedHAxis(); |
74
|
|
|
$this->legend = new AdvancedLegend(); |
75
|
|
|
$this->tooltip = new AdvancedTooltip(); |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function getAnimation(): AdvancedAnimation |
79
|
|
|
{ |
80
|
|
|
return $this->animation; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function getBar(): Bar |
84
|
|
|
{ |
85
|
|
|
return $this->bar; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function getCandlestick(): Candlestick |
89
|
|
|
{ |
90
|
|
|
return $this->candlestick; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getHAxis(): AdvancedHAxis |
94
|
|
|
{ |
95
|
|
|
return $this->hAxis; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function getLegend(): AdvancedLegend |
99
|
|
|
{ |
100
|
|
|
return $this->legend; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function getTooltip(): AdvancedTooltip |
104
|
|
|
{ |
105
|
|
|
return $this->tooltip; |
106
|
|
|
} |
107
|
|
|
} |
108
|
|
|
|