1 | <?php |
||
8 | class HighchartsChart extends Widget |
||
9 | { |
||
10 | protected $type; |
||
11 | |||
12 | protected $title; |
||
13 | |||
14 | protected $subtitle; |
||
15 | |||
16 | protected $series = array(); |
||
17 | |||
18 | protected $xAxisTitle; |
||
19 | |||
20 | protected $xAxisLabels = array(); |
||
21 | |||
22 | protected $yAxisTitle; |
||
23 | |||
24 | protected $yAxisLabels = array(); |
||
25 | |||
26 | /** |
||
27 | * @return array |
||
28 | */ |
||
29 | 3 | public function getSeries() |
|
33 | |||
34 | /** |
||
35 | * @param array $series |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | 1 | public function setSeries($series) |
|
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 3 | public function getSubtitle() |
|
53 | |||
54 | /** |
||
55 | * @param mixed $subtitle |
||
56 | * |
||
57 | * @return $this |
||
58 | */ |
||
59 | 3 | public function setSubtitle($subtitle) |
|
65 | |||
66 | /** |
||
67 | * @return mixed |
||
68 | */ |
||
69 | 3 | public function getTitle() |
|
73 | |||
74 | /** |
||
75 | * @param mixed $title |
||
76 | * |
||
77 | * @return $this |
||
78 | */ |
||
79 | 3 | public function setTitle($title) |
|
85 | |||
86 | /** |
||
87 | * @return mixed |
||
88 | */ |
||
89 | 3 | public function getType() |
|
93 | |||
94 | /** |
||
95 | * @param mixed $type |
||
96 | * |
||
97 | * @return $this |
||
98 | */ |
||
99 | 3 | public function setType($type) |
|
105 | |||
106 | /** |
||
107 | * @return array |
||
108 | */ |
||
109 | 3 | public function getXAxisLabels() |
|
113 | |||
114 | /** |
||
115 | * @param array $xAxisLabels |
||
116 | * |
||
117 | * @return $this |
||
118 | */ |
||
119 | 2 | public function setXAxisLabels($xAxisLabels) |
|
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | 3 | public function getXAxisTitle() |
|
133 | |||
134 | /** |
||
135 | * @param mixed $xAxisTitle |
||
136 | * |
||
137 | * @return $this |
||
138 | */ |
||
139 | 1 | public function setXAxisTitle($xAxisTitle) |
|
145 | |||
146 | /** |
||
147 | * @return array |
||
148 | */ |
||
149 | 3 | public function getYAxisLabels() |
|
153 | |||
154 | /** |
||
155 | * @param array $yAxisLabels |
||
156 | * |
||
157 | * @return $this |
||
158 | */ |
||
159 | 1 | public function setYAxisLabels($yAxisLabels) |
|
165 | |||
166 | /** |
||
167 | * @return mixed |
||
168 | */ |
||
169 | 3 | public function getYAxisTitle() |
|
173 | |||
174 | /** |
||
175 | * @param mixed $yAxisTitle |
||
176 | * |
||
177 | * @return $this |
||
178 | */ |
||
179 | 2 | public function setYAxisTitle($yAxisTitle) |
|
185 | |||
186 | 2 | public function setSingleSerie($serieName, $serie) |
|
190 | |||
191 | 1 | public function addItemSerie($serieName, $item) |
|
198 | |||
199 | /** |
||
200 | * {@inheritdoc} |
||
201 | */ |
||
202 | 3 | public function getData() |
|
243 | |||
244 | /** |
||
245 | * @param $returnValues |
||
246 | * |
||
247 | * @return mixed |
||
248 | */ |
||
249 | 3 | private function addSeriesData($returnValues) |
|
261 | } |
||
262 |