-
Notifications
You must be signed in to change notification settings - Fork 21
/
AnnotationChart.php
59 lines (48 loc) · 1.2 KB
/
AnnotationChart.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts;
use CMEN\GoogleChartsBundle\GoogleCharts\Chart;
use CMEN\GoogleChartsBundle\GoogleCharts\EventType;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AnnotationChart\AnnotationChartOptions;
/**
* @author Christophe Meneses
*/
class AnnotationChart extends Chart
{
/**
* @var AnnotationChartOptions
*/
protected $options;
public function __construct()
{
parent::__construct();
$this->options = new AnnotationChartOptions();
}
public function getType(): string
{
return 'AnnotationChart';
}
public function getPackage(): string
{
return 'annotationchart';
}
public function getAvailableEventTypes(): array
{
return [
EventType::RANGE_CHANGE,
EventType::READY,
EventType::SELECT,
];
}
public function getOptions(): AnnotationChartOptions
{
return $this->options;
}
/**
* @param AnnotationChartOptions $options
*/
public function setOptions(/* AnnotationChartOptions */$options): AnnotationChart
{
$this->options = $options;
return $this;
}
}