@@ -13,348 +13,348 @@ |
||
13 | 13 | */ |
14 | 14 | class DataSet implements ChartOwnedInterface, ArraySerializableInterface, \JsonSerializable |
15 | 15 | { |
16 | - use ChartOwned; |
|
17 | - use ArraySerializable; |
|
18 | - |
|
19 | - /** |
|
20 | - * @var string |
|
21 | - */ |
|
22 | - protected $type; |
|
23 | - |
|
24 | - /** |
|
25 | - * @var Data |
|
26 | - */ |
|
27 | - protected $data; |
|
28 | - |
|
29 | - /** |
|
30 | - * @var string |
|
31 | - */ |
|
32 | - protected $label; |
|
33 | - |
|
34 | - /** |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - protected $xAxisID; |
|
38 | - |
|
39 | - /** |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - protected $yAxisID; |
|
43 | - |
|
44 | - /** |
|
45 | - * @var string|string[] |
|
46 | - */ |
|
47 | - protected $backgroundColor; |
|
48 | - |
|
49 | - /** |
|
50 | - * @var string|string[] |
|
51 | - */ |
|
52 | - protected $borderColor; |
|
53 | - |
|
54 | - /** |
|
55 | - * @var int|int[] |
|
56 | - */ |
|
57 | - protected $borderWidth; |
|
58 | - |
|
59 | - /** |
|
60 | - * @var string |
|
61 | - */ |
|
62 | - protected $borderSkipped; |
|
63 | - |
|
64 | - /** |
|
65 | - * @var string|string[] |
|
66 | - */ |
|
67 | - protected $hoverBackgroundColor; |
|
68 | - |
|
69 | - /** |
|
70 | - * @var string|string[] |
|
71 | - */ |
|
72 | - protected $hoverBorderColor; |
|
73 | - |
|
74 | - /** |
|
75 | - * @var int|int[] |
|
76 | - */ |
|
77 | - protected $hoverBorderWidth; |
|
78 | - |
|
79 | - /** |
|
80 | - * @return string |
|
81 | - */ |
|
82 | - public function getType() |
|
83 | - { |
|
84 | - return $this->type; |
|
85 | - } |
|
86 | - |
|
87 | - /** |
|
88 | - * @param string $type |
|
89 | - * |
|
90 | - * @return $this |
|
91 | - */ |
|
92 | - public function setType($type) |
|
93 | - { |
|
94 | - $this->type = $type; |
|
95 | - |
|
96 | - return $this; |
|
97 | - } |
|
98 | - |
|
99 | - /** |
|
100 | - * @return Data |
|
101 | - */ |
|
102 | - public function data() |
|
103 | - { |
|
104 | - if (is_null($this->data)) { |
|
105 | - $this->data = new Data(); |
|
106 | - } |
|
107 | - |
|
108 | - return $this->data; |
|
109 | - } |
|
110 | - |
|
111 | - /** |
|
112 | - * @return string |
|
113 | - */ |
|
114 | - public function getLabel() |
|
115 | - { |
|
116 | - return $this->label; |
|
117 | - } |
|
118 | - |
|
119 | - /** |
|
120 | - * @param string $label |
|
121 | - * |
|
122 | - * @return $this |
|
123 | - */ |
|
124 | - public function setLabel($label) |
|
125 | - { |
|
126 | - $this->label = strval($label); |
|
127 | - |
|
128 | - return $this; |
|
129 | - } |
|
130 | - |
|
131 | - /** |
|
132 | - * @return string |
|
133 | - */ |
|
134 | - public function getXAxisID() |
|
135 | - { |
|
136 | - return $this->xAxisID; |
|
137 | - } |
|
138 | - |
|
139 | - /** |
|
140 | - * @param string $xAxisID |
|
141 | - * |
|
142 | - * @return $this |
|
143 | - */ |
|
144 | - public function setXAxisID($xAxisID) |
|
145 | - { |
|
146 | - $this->xAxisID = strval($xAxisID); |
|
147 | - |
|
148 | - return $this; |
|
149 | - } |
|
150 | - |
|
151 | - /** |
|
152 | - * @return string |
|
153 | - */ |
|
154 | - public function getYAxisID() |
|
155 | - { |
|
156 | - return $this->yAxisID; |
|
157 | - } |
|
158 | - |
|
159 | - /** |
|
160 | - * @param string $yAxisID |
|
161 | - * |
|
162 | - * @return $this |
|
163 | - */ |
|
164 | - public function setYAxisID($yAxisID) |
|
165 | - { |
|
166 | - $this->yAxisID = strval($yAxisID); |
|
167 | - |
|
168 | - return $this; |
|
169 | - } |
|
170 | - |
|
171 | - /** |
|
172 | - * @return string|string[] |
|
173 | - */ |
|
174 | - public function getBackgroundColor() |
|
175 | - { |
|
176 | - return $this->backgroundColor; |
|
177 | - } |
|
178 | - |
|
179 | - /** |
|
180 | - * @param string|string[] $backgroundColor |
|
181 | - * |
|
182 | - * @return $this |
|
183 | - */ |
|
184 | - public function setBackgroundColor($backgroundColor) |
|
185 | - { |
|
186 | - if (is_array($backgroundColor)) { |
|
187 | - $backgroundColor = array_map('strval', $backgroundColor); |
|
188 | - } |
|
189 | - if (! is_array($backgroundColor)) { |
|
190 | - $backgroundColor = strval($backgroundColor); |
|
191 | - } |
|
192 | - |
|
193 | - $this->backgroundColor = $backgroundColor; |
|
194 | - |
|
195 | - return $this; |
|
196 | - } |
|
197 | - |
|
198 | - /** |
|
199 | - * @return string|string[] |
|
200 | - */ |
|
201 | - public function getBorderColor() |
|
202 | - { |
|
203 | - return $this->borderColor; |
|
204 | - } |
|
205 | - |
|
206 | - /** |
|
207 | - * @param string|string[] $borderColor |
|
208 | - * |
|
209 | - * @return $this |
|
210 | - */ |
|
211 | - public function setBorderColor($borderColor) |
|
212 | - { |
|
213 | - if (is_array($borderColor)) { |
|
214 | - $borderColor = array_map('strval', $borderColor); |
|
215 | - } |
|
216 | - if (! is_array($borderColor)) { |
|
217 | - $borderColor = strval($borderColor); |
|
218 | - } |
|
219 | - |
|
220 | - $this->borderColor = $borderColor; |
|
221 | - |
|
222 | - return $this; |
|
223 | - } |
|
224 | - |
|
225 | - /** |
|
226 | - * @return int|int[] |
|
227 | - */ |
|
228 | - public function getBorderWidth() |
|
229 | - { |
|
230 | - return $this->borderWidth; |
|
231 | - } |
|
232 | - |
|
233 | - /** |
|
234 | - * @param int|int[] $borderWidth |
|
235 | - * |
|
236 | - * @return $this |
|
237 | - */ |
|
238 | - public function setBorderWidth($borderWidth) |
|
239 | - { |
|
240 | - if (is_array($borderWidth)) { |
|
241 | - $borderWidth = array_map('intval', $borderWidth); |
|
242 | - } |
|
243 | - if (! is_array($borderWidth)) { |
|
244 | - $borderWidth = intval($borderWidth); |
|
245 | - } |
|
246 | - |
|
247 | - $this->borderWidth = $borderWidth; |
|
248 | - |
|
249 | - return $this; |
|
250 | - } |
|
251 | - |
|
252 | - /** |
|
253 | - * @return string |
|
254 | - */ |
|
255 | - public function getBorderSkipped() |
|
256 | - { |
|
257 | - return $this->borderSkipped; |
|
258 | - } |
|
259 | - |
|
260 | - /** |
|
261 | - * @param string $borderSkipped |
|
262 | - * |
|
263 | - * @return $this |
|
264 | - */ |
|
265 | - public function setBorderSkipped($borderSkipped) |
|
266 | - { |
|
267 | - $this->borderSkipped = strval($borderSkipped); |
|
268 | - |
|
269 | - return $this; |
|
270 | - } |
|
271 | - |
|
272 | - /** |
|
273 | - * @return string|string[] |
|
274 | - */ |
|
275 | - public function getHoverBackgroundColor() |
|
276 | - { |
|
277 | - return $this->hoverBackgroundColor; |
|
278 | - } |
|
279 | - |
|
280 | - /** |
|
281 | - * @param string|string[] $hoverBackgroundColor |
|
282 | - * |
|
283 | - * @return $this |
|
284 | - */ |
|
285 | - public function setHoverBackgroundColor($hoverBackgroundColor) |
|
286 | - { |
|
287 | - if (is_array($hoverBackgroundColor)) { |
|
288 | - $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
289 | - } |
|
290 | - if (! is_array($hoverBackgroundColor)) { |
|
291 | - $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
292 | - } |
|
293 | - |
|
294 | - $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
295 | - |
|
296 | - return $this; |
|
297 | - } |
|
298 | - |
|
299 | - /** |
|
300 | - * @return string|string[] |
|
301 | - */ |
|
302 | - public function getHoverBorderColor() |
|
303 | - { |
|
304 | - return $this->hoverBorderColor; |
|
305 | - } |
|
306 | - |
|
307 | - /** |
|
308 | - * @param string|string[] $hoverBorderColor |
|
309 | - * |
|
310 | - * @return $this |
|
311 | - */ |
|
312 | - public function setHoverBorderColor($hoverBorderColor) |
|
313 | - { |
|
314 | - if (is_array($hoverBorderColor)) { |
|
315 | - $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
316 | - } |
|
317 | - if (! is_array($hoverBorderColor)) { |
|
318 | - $hoverBorderColor = strval($hoverBorderColor); |
|
319 | - } |
|
320 | - |
|
321 | - $this->hoverBorderColor = $hoverBorderColor; |
|
322 | - |
|
323 | - return $this; |
|
324 | - } |
|
325 | - |
|
326 | - /** |
|
327 | - * @return int|int[] |
|
328 | - */ |
|
329 | - public function getHoverBorderWidth() |
|
330 | - { |
|
331 | - return $this->hoverBorderWidth; |
|
332 | - } |
|
333 | - |
|
334 | - /** |
|
335 | - * @param int|int[] $hoverBorderWidth |
|
336 | - * |
|
337 | - * @return $this |
|
338 | - */ |
|
339 | - public function setHoverBorderWidth($hoverBorderWidth) |
|
340 | - { |
|
341 | - if (is_array($hoverBorderWidth)) { |
|
342 | - $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
343 | - } |
|
344 | - if (! is_array($hoverBorderWidth)) { |
|
345 | - $hoverBorderWidth = intval($hoverBorderWidth); |
|
346 | - } |
|
347 | - |
|
348 | - $this->hoverBorderWidth = $hoverBorderWidth; |
|
349 | - |
|
350 | - return $this; |
|
351 | - } |
|
352 | - |
|
353 | - /** |
|
354 | - * |
|
355 | - */ |
|
356 | - public function jsonSerialize() |
|
357 | - { |
|
358 | - return Json::encode($this->getArrayCopy()); |
|
359 | - } |
|
16 | + use ChartOwned; |
|
17 | + use ArraySerializable; |
|
18 | + |
|
19 | + /** |
|
20 | + * @var string |
|
21 | + */ |
|
22 | + protected $type; |
|
23 | + |
|
24 | + /** |
|
25 | + * @var Data |
|
26 | + */ |
|
27 | + protected $data; |
|
28 | + |
|
29 | + /** |
|
30 | + * @var string |
|
31 | + */ |
|
32 | + protected $label; |
|
33 | + |
|
34 | + /** |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + protected $xAxisID; |
|
38 | + |
|
39 | + /** |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + protected $yAxisID; |
|
43 | + |
|
44 | + /** |
|
45 | + * @var string|string[] |
|
46 | + */ |
|
47 | + protected $backgroundColor; |
|
48 | + |
|
49 | + /** |
|
50 | + * @var string|string[] |
|
51 | + */ |
|
52 | + protected $borderColor; |
|
53 | + |
|
54 | + /** |
|
55 | + * @var int|int[] |
|
56 | + */ |
|
57 | + protected $borderWidth; |
|
58 | + |
|
59 | + /** |
|
60 | + * @var string |
|
61 | + */ |
|
62 | + protected $borderSkipped; |
|
63 | + |
|
64 | + /** |
|
65 | + * @var string|string[] |
|
66 | + */ |
|
67 | + protected $hoverBackgroundColor; |
|
68 | + |
|
69 | + /** |
|
70 | + * @var string|string[] |
|
71 | + */ |
|
72 | + protected $hoverBorderColor; |
|
73 | + |
|
74 | + /** |
|
75 | + * @var int|int[] |
|
76 | + */ |
|
77 | + protected $hoverBorderWidth; |
|
78 | + |
|
79 | + /** |
|
80 | + * @return string |
|
81 | + */ |
|
82 | + public function getType() |
|
83 | + { |
|
84 | + return $this->type; |
|
85 | + } |
|
86 | + |
|
87 | + /** |
|
88 | + * @param string $type |
|
89 | + * |
|
90 | + * @return $this |
|
91 | + */ |
|
92 | + public function setType($type) |
|
93 | + { |
|
94 | + $this->type = $type; |
|
95 | + |
|
96 | + return $this; |
|
97 | + } |
|
98 | + |
|
99 | + /** |
|
100 | + * @return Data |
|
101 | + */ |
|
102 | + public function data() |
|
103 | + { |
|
104 | + if (is_null($this->data)) { |
|
105 | + $this->data = new Data(); |
|
106 | + } |
|
107 | + |
|
108 | + return $this->data; |
|
109 | + } |
|
110 | + |
|
111 | + /** |
|
112 | + * @return string |
|
113 | + */ |
|
114 | + public function getLabel() |
|
115 | + { |
|
116 | + return $this->label; |
|
117 | + } |
|
118 | + |
|
119 | + /** |
|
120 | + * @param string $label |
|
121 | + * |
|
122 | + * @return $this |
|
123 | + */ |
|
124 | + public function setLabel($label) |
|
125 | + { |
|
126 | + $this->label = strval($label); |
|
127 | + |
|
128 | + return $this; |
|
129 | + } |
|
130 | + |
|
131 | + /** |
|
132 | + * @return string |
|
133 | + */ |
|
134 | + public function getXAxisID() |
|
135 | + { |
|
136 | + return $this->xAxisID; |
|
137 | + } |
|
138 | + |
|
139 | + /** |
|
140 | + * @param string $xAxisID |
|
141 | + * |
|
142 | + * @return $this |
|
143 | + */ |
|
144 | + public function setXAxisID($xAxisID) |
|
145 | + { |
|
146 | + $this->xAxisID = strval($xAxisID); |
|
147 | + |
|
148 | + return $this; |
|
149 | + } |
|
150 | + |
|
151 | + /** |
|
152 | + * @return string |
|
153 | + */ |
|
154 | + public function getYAxisID() |
|
155 | + { |
|
156 | + return $this->yAxisID; |
|
157 | + } |
|
158 | + |
|
159 | + /** |
|
160 | + * @param string $yAxisID |
|
161 | + * |
|
162 | + * @return $this |
|
163 | + */ |
|
164 | + public function setYAxisID($yAxisID) |
|
165 | + { |
|
166 | + $this->yAxisID = strval($yAxisID); |
|
167 | + |
|
168 | + return $this; |
|
169 | + } |
|
170 | + |
|
171 | + /** |
|
172 | + * @return string|string[] |
|
173 | + */ |
|
174 | + public function getBackgroundColor() |
|
175 | + { |
|
176 | + return $this->backgroundColor; |
|
177 | + } |
|
178 | + |
|
179 | + /** |
|
180 | + * @param string|string[] $backgroundColor |
|
181 | + * |
|
182 | + * @return $this |
|
183 | + */ |
|
184 | + public function setBackgroundColor($backgroundColor) |
|
185 | + { |
|
186 | + if (is_array($backgroundColor)) { |
|
187 | + $backgroundColor = array_map('strval', $backgroundColor); |
|
188 | + } |
|
189 | + if (! is_array($backgroundColor)) { |
|
190 | + $backgroundColor = strval($backgroundColor); |
|
191 | + } |
|
192 | + |
|
193 | + $this->backgroundColor = $backgroundColor; |
|
194 | + |
|
195 | + return $this; |
|
196 | + } |
|
197 | + |
|
198 | + /** |
|
199 | + * @return string|string[] |
|
200 | + */ |
|
201 | + public function getBorderColor() |
|
202 | + { |
|
203 | + return $this->borderColor; |
|
204 | + } |
|
205 | + |
|
206 | + /** |
|
207 | + * @param string|string[] $borderColor |
|
208 | + * |
|
209 | + * @return $this |
|
210 | + */ |
|
211 | + public function setBorderColor($borderColor) |
|
212 | + { |
|
213 | + if (is_array($borderColor)) { |
|
214 | + $borderColor = array_map('strval', $borderColor); |
|
215 | + } |
|
216 | + if (! is_array($borderColor)) { |
|
217 | + $borderColor = strval($borderColor); |
|
218 | + } |
|
219 | + |
|
220 | + $this->borderColor = $borderColor; |
|
221 | + |
|
222 | + return $this; |
|
223 | + } |
|
224 | + |
|
225 | + /** |
|
226 | + * @return int|int[] |
|
227 | + */ |
|
228 | + public function getBorderWidth() |
|
229 | + { |
|
230 | + return $this->borderWidth; |
|
231 | + } |
|
232 | + |
|
233 | + /** |
|
234 | + * @param int|int[] $borderWidth |
|
235 | + * |
|
236 | + * @return $this |
|
237 | + */ |
|
238 | + public function setBorderWidth($borderWidth) |
|
239 | + { |
|
240 | + if (is_array($borderWidth)) { |
|
241 | + $borderWidth = array_map('intval', $borderWidth); |
|
242 | + } |
|
243 | + if (! is_array($borderWidth)) { |
|
244 | + $borderWidth = intval($borderWidth); |
|
245 | + } |
|
246 | + |
|
247 | + $this->borderWidth = $borderWidth; |
|
248 | + |
|
249 | + return $this; |
|
250 | + } |
|
251 | + |
|
252 | + /** |
|
253 | + * @return string |
|
254 | + */ |
|
255 | + public function getBorderSkipped() |
|
256 | + { |
|
257 | + return $this->borderSkipped; |
|
258 | + } |
|
259 | + |
|
260 | + /** |
|
261 | + * @param string $borderSkipped |
|
262 | + * |
|
263 | + * @return $this |
|
264 | + */ |
|
265 | + public function setBorderSkipped($borderSkipped) |
|
266 | + { |
|
267 | + $this->borderSkipped = strval($borderSkipped); |
|
268 | + |
|
269 | + return $this; |
|
270 | + } |
|
271 | + |
|
272 | + /** |
|
273 | + * @return string|string[] |
|
274 | + */ |
|
275 | + public function getHoverBackgroundColor() |
|
276 | + { |
|
277 | + return $this->hoverBackgroundColor; |
|
278 | + } |
|
279 | + |
|
280 | + /** |
|
281 | + * @param string|string[] $hoverBackgroundColor |
|
282 | + * |
|
283 | + * @return $this |
|
284 | + */ |
|
285 | + public function setHoverBackgroundColor($hoverBackgroundColor) |
|
286 | + { |
|
287 | + if (is_array($hoverBackgroundColor)) { |
|
288 | + $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
|
289 | + } |
|
290 | + if (! is_array($hoverBackgroundColor)) { |
|
291 | + $hoverBackgroundColor = strval($hoverBackgroundColor); |
|
292 | + } |
|
293 | + |
|
294 | + $this->hoverBackgroundColor = $hoverBackgroundColor; |
|
295 | + |
|
296 | + return $this; |
|
297 | + } |
|
298 | + |
|
299 | + /** |
|
300 | + * @return string|string[] |
|
301 | + */ |
|
302 | + public function getHoverBorderColor() |
|
303 | + { |
|
304 | + return $this->hoverBorderColor; |
|
305 | + } |
|
306 | + |
|
307 | + /** |
|
308 | + * @param string|string[] $hoverBorderColor |
|
309 | + * |
|
310 | + * @return $this |
|
311 | + */ |
|
312 | + public function setHoverBorderColor($hoverBorderColor) |
|
313 | + { |
|
314 | + if (is_array($hoverBorderColor)) { |
|
315 | + $hoverBorderColor = array_map('strval', $hoverBorderColor); |
|
316 | + } |
|
317 | + if (! is_array($hoverBorderColor)) { |
|
318 | + $hoverBorderColor = strval($hoverBorderColor); |
|
319 | + } |
|
320 | + |
|
321 | + $this->hoverBorderColor = $hoverBorderColor; |
|
322 | + |
|
323 | + return $this; |
|
324 | + } |
|
325 | + |
|
326 | + /** |
|
327 | + * @return int|int[] |
|
328 | + */ |
|
329 | + public function getHoverBorderWidth() |
|
330 | + { |
|
331 | + return $this->hoverBorderWidth; |
|
332 | + } |
|
333 | + |
|
334 | + /** |
|
335 | + * @param int|int[] $hoverBorderWidth |
|
336 | + * |
|
337 | + * @return $this |
|
338 | + */ |
|
339 | + public function setHoverBorderWidth($hoverBorderWidth) |
|
340 | + { |
|
341 | + if (is_array($hoverBorderWidth)) { |
|
342 | + $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
|
343 | + } |
|
344 | + if (! is_array($hoverBorderWidth)) { |
|
345 | + $hoverBorderWidth = intval($hoverBorderWidth); |
|
346 | + } |
|
347 | + |
|
348 | + $this->hoverBorderWidth = $hoverBorderWidth; |
|
349 | + |
|
350 | + return $this; |
|
351 | + } |
|
352 | + |
|
353 | + /** |
|
354 | + * |
|
355 | + */ |
|
356 | + public function jsonSerialize() |
|
357 | + { |
|
358 | + return Json::encode($this->getArrayCopy()); |
|
359 | + } |
|
360 | 360 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | if (is_array($backgroundColor)) { |
187 | 187 | $backgroundColor = array_map('strval', $backgroundColor); |
188 | 188 | } |
189 | - if (! is_array($backgroundColor)) { |
|
189 | + if (!is_array($backgroundColor)) { |
|
190 | 190 | $backgroundColor = strval($backgroundColor); |
191 | 191 | } |
192 | 192 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | if (is_array($borderColor)) { |
214 | 214 | $borderColor = array_map('strval', $borderColor); |
215 | 215 | } |
216 | - if (! is_array($borderColor)) { |
|
216 | + if (!is_array($borderColor)) { |
|
217 | 217 | $borderColor = strval($borderColor); |
218 | 218 | } |
219 | 219 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | if (is_array($borderWidth)) { |
241 | 241 | $borderWidth = array_map('intval', $borderWidth); |
242 | 242 | } |
243 | - if (! is_array($borderWidth)) { |
|
243 | + if (!is_array($borderWidth)) { |
|
244 | 244 | $borderWidth = intval($borderWidth); |
245 | 245 | } |
246 | 246 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | if (is_array($hoverBackgroundColor)) { |
288 | 288 | $hoverBackgroundColor = array_map('strval', $hoverBackgroundColor); |
289 | 289 | } |
290 | - if (! is_array($hoverBackgroundColor)) { |
|
290 | + if (!is_array($hoverBackgroundColor)) { |
|
291 | 291 | $hoverBackgroundColor = strval($hoverBackgroundColor); |
292 | 292 | } |
293 | 293 | |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | if (is_array($hoverBorderColor)) { |
315 | 315 | $hoverBorderColor = array_map('strval', $hoverBorderColor); |
316 | 316 | } |
317 | - if (! is_array($hoverBorderColor)) { |
|
317 | + if (!is_array($hoverBorderColor)) { |
|
318 | 318 | $hoverBorderColor = strval($hoverBorderColor); |
319 | 319 | } |
320 | 320 | |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | if (is_array($hoverBorderWidth)) { |
342 | 342 | $hoverBorderWidth = array_map('intval', $hoverBorderWidth); |
343 | 343 | } |
344 | - if (! is_array($hoverBorderWidth)) { |
|
344 | + if (!is_array($hoverBorderWidth)) { |
|
345 | 345 | $hoverBorderWidth = intval($hoverBorderWidth); |
346 | 346 | } |
347 | 347 |
@@ -10,403 +10,403 @@ |
||
10 | 10 | */ |
11 | 11 | class RadarDataSet extends DataSet |
12 | 12 | { |
13 | - /** |
|
14 | - * @var bool |
|
15 | - */ |
|
16 | - protected $fill; |
|
17 | - |
|
18 | - /** |
|
19 | - * @var float |
|
20 | - */ |
|
21 | - protected $lineTension; |
|
22 | - |
|
23 | - /** |
|
24 | - * @var string |
|
25 | - */ |
|
26 | - protected $borderCapStyle; |
|
27 | - |
|
28 | - /** |
|
29 | - * @var int[] |
|
30 | - */ |
|
31 | - protected $borderDash; |
|
32 | - |
|
33 | - /** |
|
34 | - * @var int |
|
35 | - */ |
|
36 | - protected $borderDashOffset; |
|
37 | - |
|
38 | - /** |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - protected $borderJoinStyle; |
|
42 | - |
|
43 | - /** |
|
44 | - * @var string|string[] |
|
45 | - */ |
|
46 | - protected $pointBorderColor; |
|
47 | - |
|
48 | - /** |
|
49 | - * @var string|string[] |
|
50 | - */ |
|
51 | - protected $pointBackgroundColor; |
|
52 | - |
|
53 | - /** |
|
54 | - * @var int|int[] |
|
55 | - */ |
|
56 | - protected $pointBorderWidth; |
|
57 | - |
|
58 | - /** |
|
59 | - * @var int|int[] |
|
60 | - */ |
|
61 | - protected $pointRadius; |
|
62 | - |
|
63 | - /** |
|
64 | - * @var int|int[] |
|
65 | - */ |
|
66 | - protected $pointHoverRadius; |
|
67 | - |
|
68 | - /** |
|
69 | - * @var int|int[] |
|
70 | - */ |
|
71 | - protected $hitRadius; |
|
72 | - |
|
73 | - /** |
|
74 | - * @var string|string[] |
|
75 | - */ |
|
76 | - protected $pointHoverBackgroundColor; |
|
77 | - |
|
78 | - /** |
|
79 | - * @var string|string[] |
|
80 | - */ |
|
81 | - protected $pointHoverBorderColor; |
|
82 | - |
|
83 | - /** |
|
84 | - * @var int|int[] |
|
85 | - */ |
|
86 | - protected $pointHoverBorderWidth; |
|
87 | - |
|
88 | - /** |
|
89 | - * @var string|string[] |
|
90 | - */ |
|
91 | - protected $pointStyle; |
|
92 | - |
|
93 | - /** |
|
94 | - * @return boolean |
|
95 | - */ |
|
96 | - public function isFill() |
|
97 | - { |
|
98 | - return $this->fill; |
|
99 | - } |
|
100 | - |
|
101 | - /** |
|
102 | - * @param boolean $fill |
|
103 | - * |
|
104 | - * @return $this |
|
105 | - */ |
|
106 | - public function setFill($fill) |
|
107 | - { |
|
108 | - $this->fill = $fill; |
|
109 | - |
|
110 | - return $this; |
|
111 | - } |
|
112 | - |
|
113 | - /** |
|
114 | - * @return int |
|
115 | - */ |
|
116 | - public function getLineTension() |
|
117 | - { |
|
118 | - return $this->lineTension; |
|
119 | - } |
|
120 | - |
|
121 | - /** |
|
122 | - * @param float $lineTension |
|
123 | - * |
|
124 | - * @return $this |
|
125 | - */ |
|
126 | - public function setLineTension($lineTension) |
|
127 | - { |
|
128 | - $this->lineTension = $lineTension; |
|
129 | - |
|
130 | - return $this; |
|
131 | - } |
|
132 | - |
|
133 | - /** |
|
134 | - * @return string |
|
135 | - */ |
|
136 | - public function getBorderCapStyle() |
|
137 | - { |
|
138 | - return $this->borderCapStyle; |
|
139 | - } |
|
140 | - |
|
141 | - /** |
|
142 | - * @param string $borderCapStyle |
|
143 | - * |
|
144 | - * @return $this |
|
145 | - */ |
|
146 | - public function setBorderCapStyle($borderCapStyle) |
|
147 | - { |
|
148 | - $this->borderCapStyle = $borderCapStyle; |
|
149 | - |
|
150 | - return $this; |
|
151 | - } |
|
152 | - |
|
153 | - /** |
|
154 | - * @return int[] |
|
155 | - */ |
|
156 | - public function getBorderDash() |
|
157 | - { |
|
158 | - return $this->borderDash; |
|
159 | - } |
|
160 | - |
|
161 | - /** |
|
162 | - * @param int[] $borderDash |
|
163 | - * |
|
164 | - * @return $this |
|
165 | - */ |
|
166 | - public function setBorderDash($borderDash) |
|
167 | - { |
|
168 | - $this->borderDash = $borderDash; |
|
169 | - |
|
170 | - return $this; |
|
171 | - } |
|
172 | - |
|
173 | - /** |
|
174 | - * @return int |
|
175 | - */ |
|
176 | - public function getBorderDashOffset() |
|
177 | - { |
|
178 | - return $this->borderDashOffset; |
|
179 | - } |
|
180 | - |
|
181 | - /** |
|
182 | - * @param int $borderDashOffset |
|
183 | - * |
|
184 | - * @return $this |
|
185 | - */ |
|
186 | - public function setBorderDashOffset($borderDashOffset) |
|
187 | - { |
|
188 | - $this->borderDashOffset = $borderDashOffset; |
|
189 | - |
|
190 | - return $this; |
|
191 | - } |
|
192 | - |
|
193 | - /** |
|
194 | - * @return string |
|
195 | - */ |
|
196 | - public function getBorderJoinStyle() |
|
197 | - { |
|
198 | - return $this->borderJoinStyle; |
|
199 | - } |
|
200 | - |
|
201 | - /** |
|
202 | - * @param string $borderJoinStyle |
|
203 | - * |
|
204 | - * @return $this |
|
205 | - */ |
|
206 | - public function setBorderJoinStyle($borderJoinStyle) |
|
207 | - { |
|
208 | - $this->borderJoinStyle = $borderJoinStyle; |
|
209 | - |
|
210 | - return $this; |
|
211 | - } |
|
212 | - |
|
213 | - /** |
|
214 | - * @return string|string[] |
|
215 | - */ |
|
216 | - public function getPointBorderColor() |
|
217 | - { |
|
218 | - return $this->pointBorderColor; |
|
219 | - } |
|
220 | - |
|
221 | - /** |
|
222 | - * @param string|string[] $pointBorderColor |
|
223 | - * |
|
224 | - * @return $this |
|
225 | - */ |
|
226 | - public function setPointBorderColor($pointBorderColor) |
|
227 | - { |
|
228 | - $this->pointBorderColor = $pointBorderColor; |
|
229 | - |
|
230 | - return $this; |
|
231 | - } |
|
232 | - |
|
233 | - /** |
|
234 | - * @return string|string[] |
|
235 | - */ |
|
236 | - public function getPointBackgroundColor() |
|
237 | - { |
|
238 | - return $this->pointBackgroundColor; |
|
239 | - } |
|
240 | - |
|
241 | - /** |
|
242 | - * @param string|string[] $pointBackgroundColor |
|
243 | - * |
|
244 | - * @return $this |
|
245 | - */ |
|
246 | - public function setPointBackgroundColor($pointBackgroundColor) |
|
247 | - { |
|
248 | - $this->pointBackgroundColor = $pointBackgroundColor; |
|
249 | - |
|
250 | - return $this; |
|
251 | - } |
|
252 | - |
|
253 | - /** |
|
254 | - * @return int|int[] |
|
255 | - */ |
|
256 | - public function getPointBorderWidth() |
|
257 | - { |
|
258 | - return $this->pointBorderWidth; |
|
259 | - } |
|
260 | - |
|
261 | - /** |
|
262 | - * @param int|int[] $pointBorderWidth |
|
263 | - * |
|
264 | - * @return $this |
|
265 | - */ |
|
266 | - public function setPointBorderWidth($pointBorderWidth) |
|
267 | - { |
|
268 | - $this->pointBorderWidth = $pointBorderWidth; |
|
269 | - |
|
270 | - return $this; |
|
271 | - } |
|
272 | - |
|
273 | - /** |
|
274 | - * @return int|int[] |
|
275 | - */ |
|
276 | - public function getPointRadius() |
|
277 | - { |
|
278 | - return $this->pointRadius; |
|
279 | - } |
|
280 | - |
|
281 | - /** |
|
282 | - * @param int|int[] $pointRadius |
|
283 | - * |
|
284 | - * @return $this |
|
285 | - */ |
|
286 | - public function setPointRadius($pointRadius) |
|
287 | - { |
|
288 | - $this->pointRadius = $pointRadius; |
|
289 | - |
|
290 | - return $this; |
|
291 | - } |
|
292 | - |
|
293 | - /** |
|
294 | - * @return int|int[] |
|
295 | - */ |
|
296 | - public function getPointHoverRadius() |
|
297 | - { |
|
298 | - return $this->pointHoverRadius; |
|
299 | - } |
|
300 | - |
|
301 | - /** |
|
302 | - * @param int|int[] $pointHoverRadius |
|
303 | - * |
|
304 | - * @return $this |
|
305 | - */ |
|
306 | - public function setPointHoverRadius($pointHoverRadius) |
|
307 | - { |
|
308 | - $this->pointHoverRadius = $pointHoverRadius; |
|
309 | - |
|
310 | - return $this; |
|
311 | - } |
|
312 | - |
|
313 | - /** |
|
314 | - * @return int|int[] |
|
315 | - */ |
|
316 | - public function getHitRadius() |
|
317 | - { |
|
318 | - return $this->hitRadius; |
|
319 | - } |
|
320 | - |
|
321 | - /** |
|
322 | - * @param int|int[] $hitRadius |
|
323 | - * |
|
324 | - * @return $this |
|
325 | - */ |
|
326 | - public function setHitRadius($hitRadius) |
|
327 | - { |
|
328 | - $this->hitRadius = $hitRadius; |
|
329 | - |
|
330 | - return $this; |
|
331 | - } |
|
332 | - |
|
333 | - /** |
|
334 | - * @return string|string[] |
|
335 | - */ |
|
336 | - public function getPointHoverBackgroundColor() |
|
337 | - { |
|
338 | - return $this->pointHoverBackgroundColor; |
|
339 | - } |
|
340 | - |
|
341 | - /** |
|
342 | - * @param string|string[] $pointHoverBackgroundColor |
|
343 | - * |
|
344 | - * @return $this |
|
345 | - */ |
|
346 | - public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
347 | - { |
|
348 | - $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
349 | - |
|
350 | - return $this; |
|
351 | - } |
|
352 | - |
|
353 | - /** |
|
354 | - * @return string|string[] |
|
355 | - */ |
|
356 | - public function getPointHoverBorderColor() |
|
357 | - { |
|
358 | - return $this->pointHoverBorderColor; |
|
359 | - } |
|
360 | - |
|
361 | - /** |
|
362 | - * @param string|string[] $pointHoverBorderColor |
|
363 | - * |
|
364 | - * @return $this |
|
365 | - */ |
|
366 | - public function setPointHoverBorderColor($pointHoverBorderColor) |
|
367 | - { |
|
368 | - $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
369 | - |
|
370 | - return $this; |
|
371 | - } |
|
372 | - |
|
373 | - /** |
|
374 | - * @return int|int[] |
|
375 | - */ |
|
376 | - public function getPointHoverBorderWidth() |
|
377 | - { |
|
378 | - return $this->pointHoverBorderWidth; |
|
379 | - } |
|
380 | - |
|
381 | - /** |
|
382 | - * @param int|int[] $pointHoverBorderWidth |
|
383 | - * |
|
384 | - * @return $this |
|
385 | - */ |
|
386 | - public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
387 | - { |
|
388 | - $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
389 | - |
|
390 | - return $this; |
|
391 | - } |
|
392 | - |
|
393 | - /** |
|
394 | - * @return string|string[] |
|
395 | - */ |
|
396 | - public function getPointStyle() |
|
397 | - { |
|
398 | - return $this->pointStyle; |
|
399 | - } |
|
400 | - |
|
401 | - /** |
|
402 | - * @param string|string[] $pointStyle |
|
403 | - * |
|
404 | - * @return $this |
|
405 | - */ |
|
406 | - public function setPointStyle($pointStyle) |
|
407 | - { |
|
408 | - $this->pointStyle = $pointStyle; |
|
409 | - |
|
410 | - return $this; |
|
411 | - } |
|
13 | + /** |
|
14 | + * @var bool |
|
15 | + */ |
|
16 | + protected $fill; |
|
17 | + |
|
18 | + /** |
|
19 | + * @var float |
|
20 | + */ |
|
21 | + protected $lineTension; |
|
22 | + |
|
23 | + /** |
|
24 | + * @var string |
|
25 | + */ |
|
26 | + protected $borderCapStyle; |
|
27 | + |
|
28 | + /** |
|
29 | + * @var int[] |
|
30 | + */ |
|
31 | + protected $borderDash; |
|
32 | + |
|
33 | + /** |
|
34 | + * @var int |
|
35 | + */ |
|
36 | + protected $borderDashOffset; |
|
37 | + |
|
38 | + /** |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + protected $borderJoinStyle; |
|
42 | + |
|
43 | + /** |
|
44 | + * @var string|string[] |
|
45 | + */ |
|
46 | + protected $pointBorderColor; |
|
47 | + |
|
48 | + /** |
|
49 | + * @var string|string[] |
|
50 | + */ |
|
51 | + protected $pointBackgroundColor; |
|
52 | + |
|
53 | + /** |
|
54 | + * @var int|int[] |
|
55 | + */ |
|
56 | + protected $pointBorderWidth; |
|
57 | + |
|
58 | + /** |
|
59 | + * @var int|int[] |
|
60 | + */ |
|
61 | + protected $pointRadius; |
|
62 | + |
|
63 | + /** |
|
64 | + * @var int|int[] |
|
65 | + */ |
|
66 | + protected $pointHoverRadius; |
|
67 | + |
|
68 | + /** |
|
69 | + * @var int|int[] |
|
70 | + */ |
|
71 | + protected $hitRadius; |
|
72 | + |
|
73 | + /** |
|
74 | + * @var string|string[] |
|
75 | + */ |
|
76 | + protected $pointHoverBackgroundColor; |
|
77 | + |
|
78 | + /** |
|
79 | + * @var string|string[] |
|
80 | + */ |
|
81 | + protected $pointHoverBorderColor; |
|
82 | + |
|
83 | + /** |
|
84 | + * @var int|int[] |
|
85 | + */ |
|
86 | + protected $pointHoverBorderWidth; |
|
87 | + |
|
88 | + /** |
|
89 | + * @var string|string[] |
|
90 | + */ |
|
91 | + protected $pointStyle; |
|
92 | + |
|
93 | + /** |
|
94 | + * @return boolean |
|
95 | + */ |
|
96 | + public function isFill() |
|
97 | + { |
|
98 | + return $this->fill; |
|
99 | + } |
|
100 | + |
|
101 | + /** |
|
102 | + * @param boolean $fill |
|
103 | + * |
|
104 | + * @return $this |
|
105 | + */ |
|
106 | + public function setFill($fill) |
|
107 | + { |
|
108 | + $this->fill = $fill; |
|
109 | + |
|
110 | + return $this; |
|
111 | + } |
|
112 | + |
|
113 | + /** |
|
114 | + * @return int |
|
115 | + */ |
|
116 | + public function getLineTension() |
|
117 | + { |
|
118 | + return $this->lineTension; |
|
119 | + } |
|
120 | + |
|
121 | + /** |
|
122 | + * @param float $lineTension |
|
123 | + * |
|
124 | + * @return $this |
|
125 | + */ |
|
126 | + public function setLineTension($lineTension) |
|
127 | + { |
|
128 | + $this->lineTension = $lineTension; |
|
129 | + |
|
130 | + return $this; |
|
131 | + } |
|
132 | + |
|
133 | + /** |
|
134 | + * @return string |
|
135 | + */ |
|
136 | + public function getBorderCapStyle() |
|
137 | + { |
|
138 | + return $this->borderCapStyle; |
|
139 | + } |
|
140 | + |
|
141 | + /** |
|
142 | + * @param string $borderCapStyle |
|
143 | + * |
|
144 | + * @return $this |
|
145 | + */ |
|
146 | + public function setBorderCapStyle($borderCapStyle) |
|
147 | + { |
|
148 | + $this->borderCapStyle = $borderCapStyle; |
|
149 | + |
|
150 | + return $this; |
|
151 | + } |
|
152 | + |
|
153 | + /** |
|
154 | + * @return int[] |
|
155 | + */ |
|
156 | + public function getBorderDash() |
|
157 | + { |
|
158 | + return $this->borderDash; |
|
159 | + } |
|
160 | + |
|
161 | + /** |
|
162 | + * @param int[] $borderDash |
|
163 | + * |
|
164 | + * @return $this |
|
165 | + */ |
|
166 | + public function setBorderDash($borderDash) |
|
167 | + { |
|
168 | + $this->borderDash = $borderDash; |
|
169 | + |
|
170 | + return $this; |
|
171 | + } |
|
172 | + |
|
173 | + /** |
|
174 | + * @return int |
|
175 | + */ |
|
176 | + public function getBorderDashOffset() |
|
177 | + { |
|
178 | + return $this->borderDashOffset; |
|
179 | + } |
|
180 | + |
|
181 | + /** |
|
182 | + * @param int $borderDashOffset |
|
183 | + * |
|
184 | + * @return $this |
|
185 | + */ |
|
186 | + public function setBorderDashOffset($borderDashOffset) |
|
187 | + { |
|
188 | + $this->borderDashOffset = $borderDashOffset; |
|
189 | + |
|
190 | + return $this; |
|
191 | + } |
|
192 | + |
|
193 | + /** |
|
194 | + * @return string |
|
195 | + */ |
|
196 | + public function getBorderJoinStyle() |
|
197 | + { |
|
198 | + return $this->borderJoinStyle; |
|
199 | + } |
|
200 | + |
|
201 | + /** |
|
202 | + * @param string $borderJoinStyle |
|
203 | + * |
|
204 | + * @return $this |
|
205 | + */ |
|
206 | + public function setBorderJoinStyle($borderJoinStyle) |
|
207 | + { |
|
208 | + $this->borderJoinStyle = $borderJoinStyle; |
|
209 | + |
|
210 | + return $this; |
|
211 | + } |
|
212 | + |
|
213 | + /** |
|
214 | + * @return string|string[] |
|
215 | + */ |
|
216 | + public function getPointBorderColor() |
|
217 | + { |
|
218 | + return $this->pointBorderColor; |
|
219 | + } |
|
220 | + |
|
221 | + /** |
|
222 | + * @param string|string[] $pointBorderColor |
|
223 | + * |
|
224 | + * @return $this |
|
225 | + */ |
|
226 | + public function setPointBorderColor($pointBorderColor) |
|
227 | + { |
|
228 | + $this->pointBorderColor = $pointBorderColor; |
|
229 | + |
|
230 | + return $this; |
|
231 | + } |
|
232 | + |
|
233 | + /** |
|
234 | + * @return string|string[] |
|
235 | + */ |
|
236 | + public function getPointBackgroundColor() |
|
237 | + { |
|
238 | + return $this->pointBackgroundColor; |
|
239 | + } |
|
240 | + |
|
241 | + /** |
|
242 | + * @param string|string[] $pointBackgroundColor |
|
243 | + * |
|
244 | + * @return $this |
|
245 | + */ |
|
246 | + public function setPointBackgroundColor($pointBackgroundColor) |
|
247 | + { |
|
248 | + $this->pointBackgroundColor = $pointBackgroundColor; |
|
249 | + |
|
250 | + return $this; |
|
251 | + } |
|
252 | + |
|
253 | + /** |
|
254 | + * @return int|int[] |
|
255 | + */ |
|
256 | + public function getPointBorderWidth() |
|
257 | + { |
|
258 | + return $this->pointBorderWidth; |
|
259 | + } |
|
260 | + |
|
261 | + /** |
|
262 | + * @param int|int[] $pointBorderWidth |
|
263 | + * |
|
264 | + * @return $this |
|
265 | + */ |
|
266 | + public function setPointBorderWidth($pointBorderWidth) |
|
267 | + { |
|
268 | + $this->pointBorderWidth = $pointBorderWidth; |
|
269 | + |
|
270 | + return $this; |
|
271 | + } |
|
272 | + |
|
273 | + /** |
|
274 | + * @return int|int[] |
|
275 | + */ |
|
276 | + public function getPointRadius() |
|
277 | + { |
|
278 | + return $this->pointRadius; |
|
279 | + } |
|
280 | + |
|
281 | + /** |
|
282 | + * @param int|int[] $pointRadius |
|
283 | + * |
|
284 | + * @return $this |
|
285 | + */ |
|
286 | + public function setPointRadius($pointRadius) |
|
287 | + { |
|
288 | + $this->pointRadius = $pointRadius; |
|
289 | + |
|
290 | + return $this; |
|
291 | + } |
|
292 | + |
|
293 | + /** |
|
294 | + * @return int|int[] |
|
295 | + */ |
|
296 | + public function getPointHoverRadius() |
|
297 | + { |
|
298 | + return $this->pointHoverRadius; |
|
299 | + } |
|
300 | + |
|
301 | + /** |
|
302 | + * @param int|int[] $pointHoverRadius |
|
303 | + * |
|
304 | + * @return $this |
|
305 | + */ |
|
306 | + public function setPointHoverRadius($pointHoverRadius) |
|
307 | + { |
|
308 | + $this->pointHoverRadius = $pointHoverRadius; |
|
309 | + |
|
310 | + return $this; |
|
311 | + } |
|
312 | + |
|
313 | + /** |
|
314 | + * @return int|int[] |
|
315 | + */ |
|
316 | + public function getHitRadius() |
|
317 | + { |
|
318 | + return $this->hitRadius; |
|
319 | + } |
|
320 | + |
|
321 | + /** |
|
322 | + * @param int|int[] $hitRadius |
|
323 | + * |
|
324 | + * @return $this |
|
325 | + */ |
|
326 | + public function setHitRadius($hitRadius) |
|
327 | + { |
|
328 | + $this->hitRadius = $hitRadius; |
|
329 | + |
|
330 | + return $this; |
|
331 | + } |
|
332 | + |
|
333 | + /** |
|
334 | + * @return string|string[] |
|
335 | + */ |
|
336 | + public function getPointHoverBackgroundColor() |
|
337 | + { |
|
338 | + return $this->pointHoverBackgroundColor; |
|
339 | + } |
|
340 | + |
|
341 | + /** |
|
342 | + * @param string|string[] $pointHoverBackgroundColor |
|
343 | + * |
|
344 | + * @return $this |
|
345 | + */ |
|
346 | + public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
347 | + { |
|
348 | + $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
349 | + |
|
350 | + return $this; |
|
351 | + } |
|
352 | + |
|
353 | + /** |
|
354 | + * @return string|string[] |
|
355 | + */ |
|
356 | + public function getPointHoverBorderColor() |
|
357 | + { |
|
358 | + return $this->pointHoverBorderColor; |
|
359 | + } |
|
360 | + |
|
361 | + /** |
|
362 | + * @param string|string[] $pointHoverBorderColor |
|
363 | + * |
|
364 | + * @return $this |
|
365 | + */ |
|
366 | + public function setPointHoverBorderColor($pointHoverBorderColor) |
|
367 | + { |
|
368 | + $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
369 | + |
|
370 | + return $this; |
|
371 | + } |
|
372 | + |
|
373 | + /** |
|
374 | + * @return int|int[] |
|
375 | + */ |
|
376 | + public function getPointHoverBorderWidth() |
|
377 | + { |
|
378 | + return $this->pointHoverBorderWidth; |
|
379 | + } |
|
380 | + |
|
381 | + /** |
|
382 | + * @param int|int[] $pointHoverBorderWidth |
|
383 | + * |
|
384 | + * @return $this |
|
385 | + */ |
|
386 | + public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
387 | + { |
|
388 | + $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
389 | + |
|
390 | + return $this; |
|
391 | + } |
|
392 | + |
|
393 | + /** |
|
394 | + * @return string|string[] |
|
395 | + */ |
|
396 | + public function getPointStyle() |
|
397 | + { |
|
398 | + return $this->pointStyle; |
|
399 | + } |
|
400 | + |
|
401 | + /** |
|
402 | + * @param string|string[] $pointStyle |
|
403 | + * |
|
404 | + * @return $this |
|
405 | + */ |
|
406 | + public function setPointStyle($pointStyle) |
|
407 | + { |
|
408 | + $this->pointStyle = $pointStyle; |
|
409 | + |
|
410 | + return $this; |
|
411 | + } |
|
412 | 412 | } |
@@ -11,53 +11,53 @@ |
||
11 | 11 | */ |
12 | 12 | class BubbleDataSet extends DataSet |
13 | 13 | { |
14 | - /** |
|
15 | - * @var string |
|
16 | - */ |
|
17 | - protected $pointStyle; |
|
18 | - |
|
19 | - /** |
|
20 | - * @var int |
|
21 | - */ |
|
22 | - protected $radius; |
|
23 | - |
|
24 | - /** |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function getPointStyle() |
|
28 | - { |
|
29 | - return $this->pointStyle; |
|
30 | - } |
|
31 | - |
|
32 | - /** |
|
33 | - * @param string $pointStyle |
|
34 | - * |
|
35 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
36 | - */ |
|
37 | - public function setPointStyle($pointStyle) |
|
38 | - { |
|
39 | - $this->pointStyle = $pointStyle; |
|
40 | - |
|
41 | - return $this; |
|
42 | - } |
|
43 | - |
|
44 | - /** |
|
45 | - * @return int|null |
|
46 | - */ |
|
47 | - public function getRadius() |
|
48 | - { |
|
49 | - return $this->radius; |
|
50 | - } |
|
51 | - |
|
52 | - /** |
|
53 | - * @param int $radius |
|
54 | - * |
|
55 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
56 | - */ |
|
57 | - public function setRadius($radius) |
|
58 | - { |
|
59 | - $this->radius = $radius; |
|
60 | - |
|
61 | - return $this; |
|
62 | - } |
|
14 | + /** |
|
15 | + * @var string |
|
16 | + */ |
|
17 | + protected $pointStyle; |
|
18 | + |
|
19 | + /** |
|
20 | + * @var int |
|
21 | + */ |
|
22 | + protected $radius; |
|
23 | + |
|
24 | + /** |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function getPointStyle() |
|
28 | + { |
|
29 | + return $this->pointStyle; |
|
30 | + } |
|
31 | + |
|
32 | + /** |
|
33 | + * @param string $pointStyle |
|
34 | + * |
|
35 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
36 | + */ |
|
37 | + public function setPointStyle($pointStyle) |
|
38 | + { |
|
39 | + $this->pointStyle = $pointStyle; |
|
40 | + |
|
41 | + return $this; |
|
42 | + } |
|
43 | + |
|
44 | + /** |
|
45 | + * @return int|null |
|
46 | + */ |
|
47 | + public function getRadius() |
|
48 | + { |
|
49 | + return $this->radius; |
|
50 | + } |
|
51 | + |
|
52 | + /** |
|
53 | + * @param int $radius |
|
54 | + * |
|
55 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
56 | + */ |
|
57 | + public function setRadius($radius) |
|
58 | + { |
|
59 | + $this->radius = $radius; |
|
60 | + |
|
61 | + return $this; |
|
62 | + } |
|
63 | 63 | } |
@@ -10,503 +10,503 @@ |
||
10 | 10 | */ |
11 | 11 | class LineDataSet extends DataSet |
12 | 12 | { |
13 | - /** |
|
14 | - * @var bool|string |
|
15 | - */ |
|
16 | - protected $fill; |
|
17 | - |
|
18 | - /** |
|
19 | - * @var string |
|
20 | - */ |
|
21 | - protected $cubicInterpolationMode; |
|
22 | - |
|
23 | - /** |
|
24 | - * @var int |
|
25 | - */ |
|
26 | - protected $lineTension; |
|
27 | - |
|
28 | - /** |
|
29 | - * @var string |
|
30 | - */ |
|
31 | - protected $borderCapStyle; |
|
32 | - |
|
33 | - /** |
|
34 | - * @var array |
|
35 | - */ |
|
36 | - protected $borderDash; |
|
37 | - |
|
38 | - /** |
|
39 | - * @var float |
|
40 | - */ |
|
41 | - protected $borderDashOffset; |
|
42 | - |
|
43 | - /** |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - protected $borderJoinStyle; |
|
47 | - |
|
48 | - /** |
|
49 | - * @var string|string[] |
|
50 | - */ |
|
51 | - protected $pointBorderColor; |
|
52 | - |
|
53 | - /** |
|
54 | - * @var string|string[] |
|
55 | - */ |
|
56 | - protected $pointBackgroundColor; |
|
57 | - |
|
58 | - /** |
|
59 | - * @var int|int[] |
|
60 | - */ |
|
61 | - protected $pointBorderWidth; |
|
62 | - |
|
63 | - /** |
|
64 | - * @var int|int[] |
|
65 | - */ |
|
66 | - protected $pointRadius; |
|
67 | - |
|
68 | - /** |
|
69 | - * @var int|int[] |
|
70 | - */ |
|
71 | - protected $pointHoverRadius; |
|
72 | - |
|
73 | - /** |
|
74 | - * @var int|int[] |
|
75 | - */ |
|
76 | - protected $pointHitRadius; |
|
77 | - |
|
78 | - /** |
|
79 | - * @var string|string[] |
|
80 | - */ |
|
81 | - protected $pointHoverBackgroundColor; |
|
82 | - |
|
83 | - /** |
|
84 | - * @var string|string[] |
|
85 | - */ |
|
86 | - protected $pointHoverBorderColor; |
|
87 | - |
|
88 | - /** |
|
89 | - * @var int|int[] |
|
90 | - */ |
|
91 | - protected $pointHoverBorderWidth; |
|
92 | - |
|
93 | - /** |
|
94 | - * @var mixed |
|
95 | - */ |
|
96 | - protected $pointStyle; |
|
97 | - |
|
98 | - /** |
|
99 | - * @var bool |
|
100 | - */ |
|
101 | - protected $showLine; |
|
102 | - |
|
103 | - /** |
|
104 | - * @var bool |
|
105 | - */ |
|
106 | - protected $spanGaps; |
|
107 | - |
|
108 | - /** |
|
109 | - * @var bool |
|
110 | - */ |
|
111 | - protected $steppedLine; |
|
112 | - |
|
113 | - /** |
|
114 | - * @return boolean |
|
115 | - */ |
|
116 | - public function isFill() |
|
117 | - { |
|
118 | - return $this->fill; |
|
119 | - } |
|
120 | - |
|
121 | - /** |
|
122 | - * @param boolean|string $fill |
|
123 | - * |
|
124 | - * @return $this |
|
125 | - */ |
|
126 | - public function setFill($fill) |
|
127 | - { |
|
128 | - $this->fill = $fill; |
|
129 | - |
|
130 | - return $this; |
|
131 | - } |
|
132 | - |
|
133 | - /** |
|
134 | - * @return string |
|
135 | - */ |
|
136 | - public function getCubicInterpolationMode() |
|
137 | - { |
|
138 | - return $this->cubicInterpolationMode; |
|
139 | - } |
|
140 | - |
|
141 | - /** |
|
142 | - * @param string $cubicInterpolationMode |
|
143 | - * |
|
144 | - * @return $this |
|
145 | - */ |
|
146 | - public function setCubicInterpolationMode($cubicInterpolationMode) |
|
147 | - { |
|
148 | - $this->cubicInterpolationMode = $cubicInterpolationMode; |
|
149 | - |
|
150 | - return $this; |
|
151 | - } |
|
152 | - |
|
153 | - /** |
|
154 | - * @return int |
|
155 | - */ |
|
156 | - public function getLineTension() |
|
157 | - { |
|
158 | - return $this->lineTension; |
|
159 | - } |
|
160 | - |
|
161 | - /** |
|
162 | - * @param float $lineTension |
|
163 | - * |
|
164 | - * @return $this |
|
165 | - */ |
|
166 | - public function setLineTension($lineTension) |
|
167 | - { |
|
168 | - $this->lineTension = floatval($lineTension); |
|
169 | - |
|
170 | - return $this; |
|
171 | - } |
|
172 | - |
|
173 | - /** |
|
174 | - * @return string |
|
175 | - */ |
|
176 | - public function getBorderCapStyle() |
|
177 | - { |
|
178 | - return $this->borderCapStyle; |
|
179 | - } |
|
180 | - |
|
181 | - /** |
|
182 | - * @param string $borderCapStyle |
|
183 | - * |
|
184 | - * @return $this |
|
185 | - */ |
|
186 | - public function setBorderCapStyle($borderCapStyle) |
|
187 | - { |
|
188 | - $this->borderCapStyle = $borderCapStyle; |
|
189 | - |
|
190 | - return $this; |
|
191 | - } |
|
192 | - |
|
193 | - /** |
|
194 | - * @return array |
|
195 | - */ |
|
196 | - public function getBorderDash() |
|
197 | - { |
|
198 | - return $this->borderDash; |
|
199 | - } |
|
200 | - |
|
201 | - /** |
|
202 | - * @param array $borderDash |
|
203 | - * |
|
204 | - * @return $this |
|
205 | - */ |
|
206 | - public function setBorderDash($borderDash) |
|
207 | - { |
|
208 | - $this->borderDash = $borderDash; |
|
209 | - |
|
210 | - return $this; |
|
211 | - } |
|
212 | - |
|
213 | - /** |
|
214 | - * @return int |
|
215 | - */ |
|
216 | - public function getBorderDashOffset() |
|
217 | - { |
|
218 | - return $this->borderDashOffset; |
|
219 | - } |
|
220 | - |
|
221 | - /** |
|
222 | - * @param float $borderDashOffset |
|
223 | - * |
|
224 | - * @return $this |
|
225 | - */ |
|
226 | - public function setBorderDashOffset($borderDashOffset) |
|
227 | - { |
|
228 | - $this->borderDashOffset = floatval($borderDashOffset); |
|
229 | - |
|
230 | - return $this; |
|
231 | - } |
|
232 | - |
|
233 | - /** |
|
234 | - * @return string |
|
235 | - */ |
|
236 | - public function getBorderJoinStyle() |
|
237 | - { |
|
238 | - return $this->borderJoinStyle; |
|
239 | - } |
|
240 | - |
|
241 | - /** |
|
242 | - * @param string $borderJoinStyle |
|
243 | - * |
|
244 | - * @return $this |
|
245 | - */ |
|
246 | - public function setBorderJoinStyle($borderJoinStyle) |
|
247 | - { |
|
248 | - $this->borderJoinStyle = $borderJoinStyle; |
|
249 | - |
|
250 | - return $this; |
|
251 | - } |
|
252 | - |
|
253 | - /** |
|
254 | - * @return string|string[] |
|
255 | - */ |
|
256 | - public function getPointBorderColor() |
|
257 | - { |
|
258 | - return $this->pointBorderColor; |
|
259 | - } |
|
260 | - |
|
261 | - /** |
|
262 | - * @param string|string[] $pointBorderColor |
|
263 | - * |
|
264 | - * @return $this |
|
265 | - */ |
|
266 | - public function setPointBorderColor($pointBorderColor) |
|
267 | - { |
|
268 | - $this->pointBorderColor = $pointBorderColor; |
|
269 | - |
|
270 | - return $this; |
|
271 | - } |
|
272 | - |
|
273 | - /** |
|
274 | - * @return string|string[] |
|
275 | - */ |
|
276 | - public function getPointBackgroundColor() |
|
277 | - { |
|
278 | - return $this->pointBackgroundColor; |
|
279 | - } |
|
280 | - |
|
281 | - /** |
|
282 | - * @param string|string[] $pointBackgroundColor |
|
283 | - * |
|
284 | - * @return $this |
|
285 | - */ |
|
286 | - public function setPointBackgroundColor($pointBackgroundColor) |
|
287 | - { |
|
288 | - $this->pointBackgroundColor = $pointBackgroundColor; |
|
289 | - |
|
290 | - return $this; |
|
291 | - } |
|
292 | - |
|
293 | - /** |
|
294 | - * @return int|int[] |
|
295 | - */ |
|
296 | - public function getPointBorderWidth() |
|
297 | - { |
|
298 | - return $this->pointBorderWidth; |
|
299 | - } |
|
300 | - |
|
301 | - /** |
|
302 | - * @param int|int[] $pointBorderWidth |
|
303 | - * |
|
304 | - * @return $this |
|
305 | - */ |
|
306 | - public function setPointBorderWidth($pointBorderWidth) |
|
307 | - { |
|
308 | - $this->pointBorderWidth = $pointBorderWidth; |
|
309 | - |
|
310 | - return $this; |
|
311 | - } |
|
312 | - |
|
313 | - /** |
|
314 | - * @return int|int[] |
|
315 | - */ |
|
316 | - public function getPointRadius() |
|
317 | - { |
|
318 | - return $this->pointRadius; |
|
319 | - } |
|
320 | - |
|
321 | - /** |
|
322 | - * @param int|int[] $pointRadius |
|
323 | - * |
|
324 | - * @return $this |
|
325 | - */ |
|
326 | - public function setPointRadius($pointRadius) |
|
327 | - { |
|
328 | - $this->pointRadius = $pointRadius; |
|
329 | - |
|
330 | - return $this; |
|
331 | - } |
|
332 | - |
|
333 | - /** |
|
334 | - * @return int|int[] |
|
335 | - */ |
|
336 | - public function getPointHoverRadius() |
|
337 | - { |
|
338 | - return $this->pointHoverRadius; |
|
339 | - } |
|
340 | - |
|
341 | - /** |
|
342 | - * @param int|int[] $pointHoverRadius |
|
343 | - * |
|
344 | - * @return $this |
|
345 | - */ |
|
346 | - public function setPointHoverRadius($pointHoverRadius) |
|
347 | - { |
|
348 | - $this->pointHoverRadius = $pointHoverRadius; |
|
349 | - |
|
350 | - return $this; |
|
351 | - } |
|
352 | - |
|
353 | - /** |
|
354 | - * @return int|int[] |
|
355 | - */ |
|
356 | - public function getPointHitRadius() |
|
357 | - { |
|
358 | - return $this->pointHitRadius; |
|
359 | - } |
|
360 | - |
|
361 | - /** |
|
362 | - * @param int|int[] $pointHitRadius |
|
363 | - * |
|
364 | - * @return $this |
|
365 | - */ |
|
366 | - public function setPointHitRadius($pointHitRadius) |
|
367 | - { |
|
368 | - $this->pointHitRadius = $pointHitRadius; |
|
369 | - |
|
370 | - return $this; |
|
371 | - } |
|
372 | - |
|
373 | - /** |
|
374 | - * @return string|string[] |
|
375 | - */ |
|
376 | - public function getPointHoverBackgroundColor() |
|
377 | - { |
|
378 | - return $this->pointHoverBackgroundColor; |
|
379 | - } |
|
380 | - |
|
381 | - /** |
|
382 | - * @param string|string[] $pointHoverBackgroundColor |
|
383 | - * |
|
384 | - * @return $this |
|
385 | - */ |
|
386 | - public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
387 | - { |
|
388 | - $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
389 | - |
|
390 | - return $this; |
|
391 | - } |
|
392 | - |
|
393 | - /** |
|
394 | - * @return string|string[] |
|
395 | - */ |
|
396 | - public function getPointHoverBorderColor() |
|
397 | - { |
|
398 | - return $this->pointHoverBorderColor; |
|
399 | - } |
|
400 | - |
|
401 | - /** |
|
402 | - * @param string|string[] $pointHoverBorderColor |
|
403 | - * |
|
404 | - * @return $this |
|
405 | - */ |
|
406 | - public function setPointHoverBorderColor($pointHoverBorderColor) |
|
407 | - { |
|
408 | - $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
409 | - |
|
410 | - return $this; |
|
411 | - } |
|
412 | - |
|
413 | - /** |
|
414 | - * @return int|int[] |
|
415 | - */ |
|
416 | - public function getPointHoverBorderWidth() |
|
417 | - { |
|
418 | - return $this->pointHoverBorderWidth; |
|
419 | - } |
|
420 | - |
|
421 | - /** |
|
422 | - * @param int|int[] $pointHoverBorderWidth |
|
423 | - * |
|
424 | - * @return $this |
|
425 | - */ |
|
426 | - public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
427 | - { |
|
428 | - $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
429 | - |
|
430 | - return $this; |
|
431 | - } |
|
432 | - |
|
433 | - /** |
|
434 | - * @return mixed |
|
435 | - */ |
|
436 | - public function getPointStyle() |
|
437 | - { |
|
438 | - return $this->pointStyle; |
|
439 | - } |
|
440 | - |
|
441 | - /** |
|
442 | - * @param mixed $pointStyle |
|
443 | - * |
|
444 | - * @return $this |
|
445 | - */ |
|
446 | - public function setPointStyle($pointStyle) |
|
447 | - { |
|
448 | - $this->pointStyle = $pointStyle; |
|
449 | - |
|
450 | - return $this; |
|
451 | - } |
|
452 | - |
|
453 | - /** |
|
454 | - * @return boolean |
|
455 | - */ |
|
456 | - public function isShowLine() |
|
457 | - { |
|
458 | - return $this->showLine; |
|
459 | - } |
|
460 | - |
|
461 | - /** |
|
462 | - * @param boolean $showLine |
|
463 | - * |
|
464 | - * @return $this |
|
465 | - */ |
|
466 | - public function setShowLine($showLine) |
|
467 | - { |
|
468 | - $this->showLine = $showLine; |
|
469 | - |
|
470 | - return $this; |
|
471 | - } |
|
472 | - |
|
473 | - /** |
|
474 | - * @return boolean |
|
475 | - */ |
|
476 | - public function isSpanGaps() |
|
477 | - { |
|
478 | - return $this->spanGaps; |
|
479 | - } |
|
480 | - |
|
481 | - /** |
|
482 | - * @param boolean $spanGaps |
|
483 | - * |
|
484 | - * @return $this |
|
485 | - */ |
|
486 | - public function setSpanGaps($spanGaps) |
|
487 | - { |
|
488 | - $this->spanGaps = $spanGaps; |
|
489 | - |
|
490 | - return $this; |
|
491 | - } |
|
492 | - |
|
493 | - /** |
|
494 | - * @return boolean |
|
495 | - */ |
|
496 | - public function isSteppedLine() |
|
497 | - { |
|
498 | - return $this->steppedLine; |
|
499 | - } |
|
500 | - |
|
501 | - /** |
|
502 | - * @param boolean $steppedLine |
|
503 | - * |
|
504 | - * @return $this |
|
505 | - */ |
|
506 | - public function setSteppedLine($steppedLine) |
|
507 | - { |
|
508 | - $this->steppedLine = $steppedLine; |
|
509 | - |
|
510 | - return $this; |
|
511 | - } |
|
13 | + /** |
|
14 | + * @var bool|string |
|
15 | + */ |
|
16 | + protected $fill; |
|
17 | + |
|
18 | + /** |
|
19 | + * @var string |
|
20 | + */ |
|
21 | + protected $cubicInterpolationMode; |
|
22 | + |
|
23 | + /** |
|
24 | + * @var int |
|
25 | + */ |
|
26 | + protected $lineTension; |
|
27 | + |
|
28 | + /** |
|
29 | + * @var string |
|
30 | + */ |
|
31 | + protected $borderCapStyle; |
|
32 | + |
|
33 | + /** |
|
34 | + * @var array |
|
35 | + */ |
|
36 | + protected $borderDash; |
|
37 | + |
|
38 | + /** |
|
39 | + * @var float |
|
40 | + */ |
|
41 | + protected $borderDashOffset; |
|
42 | + |
|
43 | + /** |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + protected $borderJoinStyle; |
|
47 | + |
|
48 | + /** |
|
49 | + * @var string|string[] |
|
50 | + */ |
|
51 | + protected $pointBorderColor; |
|
52 | + |
|
53 | + /** |
|
54 | + * @var string|string[] |
|
55 | + */ |
|
56 | + protected $pointBackgroundColor; |
|
57 | + |
|
58 | + /** |
|
59 | + * @var int|int[] |
|
60 | + */ |
|
61 | + protected $pointBorderWidth; |
|
62 | + |
|
63 | + /** |
|
64 | + * @var int|int[] |
|
65 | + */ |
|
66 | + protected $pointRadius; |
|
67 | + |
|
68 | + /** |
|
69 | + * @var int|int[] |
|
70 | + */ |
|
71 | + protected $pointHoverRadius; |
|
72 | + |
|
73 | + /** |
|
74 | + * @var int|int[] |
|
75 | + */ |
|
76 | + protected $pointHitRadius; |
|
77 | + |
|
78 | + /** |
|
79 | + * @var string|string[] |
|
80 | + */ |
|
81 | + protected $pointHoverBackgroundColor; |
|
82 | + |
|
83 | + /** |
|
84 | + * @var string|string[] |
|
85 | + */ |
|
86 | + protected $pointHoverBorderColor; |
|
87 | + |
|
88 | + /** |
|
89 | + * @var int|int[] |
|
90 | + */ |
|
91 | + protected $pointHoverBorderWidth; |
|
92 | + |
|
93 | + /** |
|
94 | + * @var mixed |
|
95 | + */ |
|
96 | + protected $pointStyle; |
|
97 | + |
|
98 | + /** |
|
99 | + * @var bool |
|
100 | + */ |
|
101 | + protected $showLine; |
|
102 | + |
|
103 | + /** |
|
104 | + * @var bool |
|
105 | + */ |
|
106 | + protected $spanGaps; |
|
107 | + |
|
108 | + /** |
|
109 | + * @var bool |
|
110 | + */ |
|
111 | + protected $steppedLine; |
|
112 | + |
|
113 | + /** |
|
114 | + * @return boolean |
|
115 | + */ |
|
116 | + public function isFill() |
|
117 | + { |
|
118 | + return $this->fill; |
|
119 | + } |
|
120 | + |
|
121 | + /** |
|
122 | + * @param boolean|string $fill |
|
123 | + * |
|
124 | + * @return $this |
|
125 | + */ |
|
126 | + public function setFill($fill) |
|
127 | + { |
|
128 | + $this->fill = $fill; |
|
129 | + |
|
130 | + return $this; |
|
131 | + } |
|
132 | + |
|
133 | + /** |
|
134 | + * @return string |
|
135 | + */ |
|
136 | + public function getCubicInterpolationMode() |
|
137 | + { |
|
138 | + return $this->cubicInterpolationMode; |
|
139 | + } |
|
140 | + |
|
141 | + /** |
|
142 | + * @param string $cubicInterpolationMode |
|
143 | + * |
|
144 | + * @return $this |
|
145 | + */ |
|
146 | + public function setCubicInterpolationMode($cubicInterpolationMode) |
|
147 | + { |
|
148 | + $this->cubicInterpolationMode = $cubicInterpolationMode; |
|
149 | + |
|
150 | + return $this; |
|
151 | + } |
|
152 | + |
|
153 | + /** |
|
154 | + * @return int |
|
155 | + */ |
|
156 | + public function getLineTension() |
|
157 | + { |
|
158 | + return $this->lineTension; |
|
159 | + } |
|
160 | + |
|
161 | + /** |
|
162 | + * @param float $lineTension |
|
163 | + * |
|
164 | + * @return $this |
|
165 | + */ |
|
166 | + public function setLineTension($lineTension) |
|
167 | + { |
|
168 | + $this->lineTension = floatval($lineTension); |
|
169 | + |
|
170 | + return $this; |
|
171 | + } |
|
172 | + |
|
173 | + /** |
|
174 | + * @return string |
|
175 | + */ |
|
176 | + public function getBorderCapStyle() |
|
177 | + { |
|
178 | + return $this->borderCapStyle; |
|
179 | + } |
|
180 | + |
|
181 | + /** |
|
182 | + * @param string $borderCapStyle |
|
183 | + * |
|
184 | + * @return $this |
|
185 | + */ |
|
186 | + public function setBorderCapStyle($borderCapStyle) |
|
187 | + { |
|
188 | + $this->borderCapStyle = $borderCapStyle; |
|
189 | + |
|
190 | + return $this; |
|
191 | + } |
|
192 | + |
|
193 | + /** |
|
194 | + * @return array |
|
195 | + */ |
|
196 | + public function getBorderDash() |
|
197 | + { |
|
198 | + return $this->borderDash; |
|
199 | + } |
|
200 | + |
|
201 | + /** |
|
202 | + * @param array $borderDash |
|
203 | + * |
|
204 | + * @return $this |
|
205 | + */ |
|
206 | + public function setBorderDash($borderDash) |
|
207 | + { |
|
208 | + $this->borderDash = $borderDash; |
|
209 | + |
|
210 | + return $this; |
|
211 | + } |
|
212 | + |
|
213 | + /** |
|
214 | + * @return int |
|
215 | + */ |
|
216 | + public function getBorderDashOffset() |
|
217 | + { |
|
218 | + return $this->borderDashOffset; |
|
219 | + } |
|
220 | + |
|
221 | + /** |
|
222 | + * @param float $borderDashOffset |
|
223 | + * |
|
224 | + * @return $this |
|
225 | + */ |
|
226 | + public function setBorderDashOffset($borderDashOffset) |
|
227 | + { |
|
228 | + $this->borderDashOffset = floatval($borderDashOffset); |
|
229 | + |
|
230 | + return $this; |
|
231 | + } |
|
232 | + |
|
233 | + /** |
|
234 | + * @return string |
|
235 | + */ |
|
236 | + public function getBorderJoinStyle() |
|
237 | + { |
|
238 | + return $this->borderJoinStyle; |
|
239 | + } |
|
240 | + |
|
241 | + /** |
|
242 | + * @param string $borderJoinStyle |
|
243 | + * |
|
244 | + * @return $this |
|
245 | + */ |
|
246 | + public function setBorderJoinStyle($borderJoinStyle) |
|
247 | + { |
|
248 | + $this->borderJoinStyle = $borderJoinStyle; |
|
249 | + |
|
250 | + return $this; |
|
251 | + } |
|
252 | + |
|
253 | + /** |
|
254 | + * @return string|string[] |
|
255 | + */ |
|
256 | + public function getPointBorderColor() |
|
257 | + { |
|
258 | + return $this->pointBorderColor; |
|
259 | + } |
|
260 | + |
|
261 | + /** |
|
262 | + * @param string|string[] $pointBorderColor |
|
263 | + * |
|
264 | + * @return $this |
|
265 | + */ |
|
266 | + public function setPointBorderColor($pointBorderColor) |
|
267 | + { |
|
268 | + $this->pointBorderColor = $pointBorderColor; |
|
269 | + |
|
270 | + return $this; |
|
271 | + } |
|
272 | + |
|
273 | + /** |
|
274 | + * @return string|string[] |
|
275 | + */ |
|
276 | + public function getPointBackgroundColor() |
|
277 | + { |
|
278 | + return $this->pointBackgroundColor; |
|
279 | + } |
|
280 | + |
|
281 | + /** |
|
282 | + * @param string|string[] $pointBackgroundColor |
|
283 | + * |
|
284 | + * @return $this |
|
285 | + */ |
|
286 | + public function setPointBackgroundColor($pointBackgroundColor) |
|
287 | + { |
|
288 | + $this->pointBackgroundColor = $pointBackgroundColor; |
|
289 | + |
|
290 | + return $this; |
|
291 | + } |
|
292 | + |
|
293 | + /** |
|
294 | + * @return int|int[] |
|
295 | + */ |
|
296 | + public function getPointBorderWidth() |
|
297 | + { |
|
298 | + return $this->pointBorderWidth; |
|
299 | + } |
|
300 | + |
|
301 | + /** |
|
302 | + * @param int|int[] $pointBorderWidth |
|
303 | + * |
|
304 | + * @return $this |
|
305 | + */ |
|
306 | + public function setPointBorderWidth($pointBorderWidth) |
|
307 | + { |
|
308 | + $this->pointBorderWidth = $pointBorderWidth; |
|
309 | + |
|
310 | + return $this; |
|
311 | + } |
|
312 | + |
|
313 | + /** |
|
314 | + * @return int|int[] |
|
315 | + */ |
|
316 | + public function getPointRadius() |
|
317 | + { |
|
318 | + return $this->pointRadius; |
|
319 | + } |
|
320 | + |
|
321 | + /** |
|
322 | + * @param int|int[] $pointRadius |
|
323 | + * |
|
324 | + * @return $this |
|
325 | + */ |
|
326 | + public function setPointRadius($pointRadius) |
|
327 | + { |
|
328 | + $this->pointRadius = $pointRadius; |
|
329 | + |
|
330 | + return $this; |
|
331 | + } |
|
332 | + |
|
333 | + /** |
|
334 | + * @return int|int[] |
|
335 | + */ |
|
336 | + public function getPointHoverRadius() |
|
337 | + { |
|
338 | + return $this->pointHoverRadius; |
|
339 | + } |
|
340 | + |
|
341 | + /** |
|
342 | + * @param int|int[] $pointHoverRadius |
|
343 | + * |
|
344 | + * @return $this |
|
345 | + */ |
|
346 | + public function setPointHoverRadius($pointHoverRadius) |
|
347 | + { |
|
348 | + $this->pointHoverRadius = $pointHoverRadius; |
|
349 | + |
|
350 | + return $this; |
|
351 | + } |
|
352 | + |
|
353 | + /** |
|
354 | + * @return int|int[] |
|
355 | + */ |
|
356 | + public function getPointHitRadius() |
|
357 | + { |
|
358 | + return $this->pointHitRadius; |
|
359 | + } |
|
360 | + |
|
361 | + /** |
|
362 | + * @param int|int[] $pointHitRadius |
|
363 | + * |
|
364 | + * @return $this |
|
365 | + */ |
|
366 | + public function setPointHitRadius($pointHitRadius) |
|
367 | + { |
|
368 | + $this->pointHitRadius = $pointHitRadius; |
|
369 | + |
|
370 | + return $this; |
|
371 | + } |
|
372 | + |
|
373 | + /** |
|
374 | + * @return string|string[] |
|
375 | + */ |
|
376 | + public function getPointHoverBackgroundColor() |
|
377 | + { |
|
378 | + return $this->pointHoverBackgroundColor; |
|
379 | + } |
|
380 | + |
|
381 | + /** |
|
382 | + * @param string|string[] $pointHoverBackgroundColor |
|
383 | + * |
|
384 | + * @return $this |
|
385 | + */ |
|
386 | + public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
387 | + { |
|
388 | + $this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
389 | + |
|
390 | + return $this; |
|
391 | + } |
|
392 | + |
|
393 | + /** |
|
394 | + * @return string|string[] |
|
395 | + */ |
|
396 | + public function getPointHoverBorderColor() |
|
397 | + { |
|
398 | + return $this->pointHoverBorderColor; |
|
399 | + } |
|
400 | + |
|
401 | + /** |
|
402 | + * @param string|string[] $pointHoverBorderColor |
|
403 | + * |
|
404 | + * @return $this |
|
405 | + */ |
|
406 | + public function setPointHoverBorderColor($pointHoverBorderColor) |
|
407 | + { |
|
408 | + $this->pointHoverBorderColor = $pointHoverBorderColor; |
|
409 | + |
|
410 | + return $this; |
|
411 | + } |
|
412 | + |
|
413 | + /** |
|
414 | + * @return int|int[] |
|
415 | + */ |
|
416 | + public function getPointHoverBorderWidth() |
|
417 | + { |
|
418 | + return $this->pointHoverBorderWidth; |
|
419 | + } |
|
420 | + |
|
421 | + /** |
|
422 | + * @param int|int[] $pointHoverBorderWidth |
|
423 | + * |
|
424 | + * @return $this |
|
425 | + */ |
|
426 | + public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
427 | + { |
|
428 | + $this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
429 | + |
|
430 | + return $this; |
|
431 | + } |
|
432 | + |
|
433 | + /** |
|
434 | + * @return mixed |
|
435 | + */ |
|
436 | + public function getPointStyle() |
|
437 | + { |
|
438 | + return $this->pointStyle; |
|
439 | + } |
|
440 | + |
|
441 | + /** |
|
442 | + * @param mixed $pointStyle |
|
443 | + * |
|
444 | + * @return $this |
|
445 | + */ |
|
446 | + public function setPointStyle($pointStyle) |
|
447 | + { |
|
448 | + $this->pointStyle = $pointStyle; |
|
449 | + |
|
450 | + return $this; |
|
451 | + } |
|
452 | + |
|
453 | + /** |
|
454 | + * @return boolean |
|
455 | + */ |
|
456 | + public function isShowLine() |
|
457 | + { |
|
458 | + return $this->showLine; |
|
459 | + } |
|
460 | + |
|
461 | + /** |
|
462 | + * @param boolean $showLine |
|
463 | + * |
|
464 | + * @return $this |
|
465 | + */ |
|
466 | + public function setShowLine($showLine) |
|
467 | + { |
|
468 | + $this->showLine = $showLine; |
|
469 | + |
|
470 | + return $this; |
|
471 | + } |
|
472 | + |
|
473 | + /** |
|
474 | + * @return boolean |
|
475 | + */ |
|
476 | + public function isSpanGaps() |
|
477 | + { |
|
478 | + return $this->spanGaps; |
|
479 | + } |
|
480 | + |
|
481 | + /** |
|
482 | + * @param boolean $spanGaps |
|
483 | + * |
|
484 | + * @return $this |
|
485 | + */ |
|
486 | + public function setSpanGaps($spanGaps) |
|
487 | + { |
|
488 | + $this->spanGaps = $spanGaps; |
|
489 | + |
|
490 | + return $this; |
|
491 | + } |
|
492 | + |
|
493 | + /** |
|
494 | + * @return boolean |
|
495 | + */ |
|
496 | + public function isSteppedLine() |
|
497 | + { |
|
498 | + return $this->steppedLine; |
|
499 | + } |
|
500 | + |
|
501 | + /** |
|
502 | + * @param boolean $steppedLine |
|
503 | + * |
|
504 | + * @return $this |
|
505 | + */ |
|
506 | + public function setSteppedLine($steppedLine) |
|
507 | + { |
|
508 | + $this->steppedLine = $steppedLine; |
|
509 | + |
|
510 | + return $this; |
|
511 | + } |
|
512 | 512 | } |
@@ -8,10 +8,10 @@ |
||
8 | 8 | */ |
9 | 9 | interface ArraySerializableInterface |
10 | 10 | { |
11 | - /** |
|
12 | - * Should return an array containing all values. |
|
13 | - * |
|
14 | - * @return array |
|
15 | - */ |
|
16 | - public function getArrayCopy(); |
|
11 | + /** |
|
12 | + * Should return an array containing all values. |
|
13 | + * |
|
14 | + * @return array |
|
15 | + */ |
|
16 | + public function getArrayCopy(); |
|
17 | 17 | } |
@@ -8,28 +8,28 @@ |
||
8 | 8 | */ |
9 | 9 | trait ChartOwned |
10 | 10 | { |
11 | - /** |
|
12 | - * @var ChartInterface |
|
13 | - */ |
|
14 | - private $owner; |
|
11 | + /** |
|
12 | + * @var ChartInterface |
|
13 | + */ |
|
14 | + private $owner; |
|
15 | 15 | |
16 | - /** |
|
17 | - * @param ChartInterface $chart |
|
18 | - * |
|
19 | - * @return $this |
|
20 | - */ |
|
21 | - public function setOwner(ChartInterface $chart) |
|
22 | - { |
|
23 | - $this->owner = $chart; |
|
16 | + /** |
|
17 | + * @param ChartInterface $chart |
|
18 | + * |
|
19 | + * @return $this |
|
20 | + */ |
|
21 | + public function setOwner(ChartInterface $chart) |
|
22 | + { |
|
23 | + $this->owner = $chart; |
|
24 | 24 | |
25 | - return $this; |
|
26 | - } |
|
25 | + return $this; |
|
26 | + } |
|
27 | 27 | |
28 | - /** |
|
29 | - * @return ChartInterface |
|
30 | - */ |
|
31 | - public function owner() |
|
32 | - { |
|
33 | - return $this->owner; |
|
34 | - } |
|
28 | + /** |
|
29 | + * @return ChartInterface |
|
30 | + */ |
|
31 | + public function owner() |
|
32 | + { |
|
33 | + return $this->owner; |
|
34 | + } |
|
35 | 35 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function setOwner(ChartInterface $chart) |
22 | 22 | { |
23 | - $this->owner = $chart; |
|
23 | + $this->owner = $chart; |
|
24 | 24 | |
25 | 25 | return $this; |
26 | 26 | } |
@@ -11,11 +11,11 @@ |
||
11 | 11 | */ |
12 | 12 | class Data extends ArrayAccess implements \JsonSerializable |
13 | 13 | { |
14 | - /** |
|
15 | - * @return string |
|
16 | - */ |
|
17 | - public function jsonSerialize() |
|
18 | - { |
|
19 | - return Json::encode($this->data); |
|
20 | - } |
|
14 | + /** |
|
15 | + * @return string |
|
16 | + */ |
|
17 | + public function jsonSerialize() |
|
18 | + { |
|
19 | + return Json::encode($this->data); |
|
20 | + } |
|
21 | 21 | } |
@@ -10,57 +10,57 @@ |
||
10 | 10 | */ |
11 | 11 | trait ArraySerializable |
12 | 12 | { |
13 | - /** |
|
14 | - * Will loop through class properties and try and assign their values to an array of data that will be returned. |
|
15 | - * |
|
16 | - * @return array |
|
17 | - * @throws \ReflectionException |
|
18 | - * @throws \Zend_Reflection_Exception |
|
19 | - */ |
|
20 | - public function getArrayCopy() |
|
21 | - { |
|
22 | - $data = []; |
|
23 | - $properties = get_object_vars($this); |
|
24 | - $reflectionClass = new \Zend_Reflection_Class($this); |
|
25 | - foreach ($properties as $property => $value) { |
|
26 | - // Skip property if it is not accessible |
|
27 | - if (! $reflectionClass->hasProperty($property)) { |
|
28 | - continue; |
|
29 | - } |
|
13 | + /** |
|
14 | + * Will loop through class properties and try and assign their values to an array of data that will be returned. |
|
15 | + * |
|
16 | + * @return array |
|
17 | + * @throws \ReflectionException |
|
18 | + * @throws \Zend_Reflection_Exception |
|
19 | + */ |
|
20 | + public function getArrayCopy() |
|
21 | + { |
|
22 | + $data = []; |
|
23 | + $properties = get_object_vars($this); |
|
24 | + $reflectionClass = new \Zend_Reflection_Class($this); |
|
25 | + foreach ($properties as $property => $value) { |
|
26 | + // Skip property if it is not accessible |
|
27 | + if (! $reflectionClass->hasProperty($property)) { |
|
28 | + continue; |
|
29 | + } |
|
30 | 30 | |
31 | - // Only process properties that aren't null |
|
32 | - if (! is_null($value)) { |
|
33 | - // Gather phpdoc from property |
|
34 | - $phpDoc = $reflectionClass->getProperty($property)->getDocComment(); |
|
35 | - $type = $phpDoc->getTag('var')->getDescription(); |
|
36 | - $object = false; |
|
31 | + // Only process properties that aren't null |
|
32 | + if (! is_null($value)) { |
|
33 | + // Gather phpdoc from property |
|
34 | + $phpDoc = $reflectionClass->getProperty($property)->getDocComment(); |
|
35 | + $type = $phpDoc->getTag('var')->getDescription(); |
|
36 | + $object = false; |
|
37 | 37 | |
38 | - // Prepend 'get' to the getter method. |
|
39 | - $getter = 'get' . ucfirst($property); |
|
40 | - if (is_object($value) && ! $this->$property instanceof Expr) { |
|
41 | - $object = true; |
|
42 | - } |
|
38 | + // Prepend 'get' to the getter method. |
|
39 | + $getter = 'get' . ucfirst($property); |
|
40 | + if (is_object($value) && ! $this->$property instanceof Expr) { |
|
41 | + $object = true; |
|
42 | + } |
|
43 | 43 | |
44 | - // Determine whether the getter method is equal to the property name or is prepended by 'is' or 'get' |
|
45 | - if (strcmp($type, 'bool') === 0 || strcmp($type, 'boolean') === 0) { |
|
46 | - // Prepend 'is' to the getter method |
|
47 | - $getter = 'is' . ucfirst($property); |
|
48 | - } elseif (method_exists($this, $property) && is_object($value)) { |
|
49 | - // The getter method is equal to the property name and the value is an actual object |
|
50 | - $getter = $property; |
|
51 | - $object = true; |
|
52 | - } |
|
44 | + // Determine whether the getter method is equal to the property name or is prepended by 'is' or 'get' |
|
45 | + if (strcmp($type, 'bool') === 0 || strcmp($type, 'boolean') === 0) { |
|
46 | + // Prepend 'is' to the getter method |
|
47 | + $getter = 'is' . ucfirst($property); |
|
48 | + } elseif (method_exists($this, $property) && is_object($value)) { |
|
49 | + // The getter method is equal to the property name and the value is an actual object |
|
50 | + $getter = $property; |
|
51 | + $object = true; |
|
52 | + } |
|
53 | 53 | |
54 | - // Abort if the method does not exist |
|
55 | - if (! method_exists($this, $getter)) { |
|
56 | - continue; |
|
57 | - } |
|
54 | + // Abort if the method does not exist |
|
55 | + if (! method_exists($this, $getter)) { |
|
56 | + continue; |
|
57 | + } |
|
58 | 58 | |
59 | - // Assign the contents of the property to the data array |
|
60 | - $data[ $property ] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
61 | - } |
|
62 | - } |
|
59 | + // Assign the contents of the property to the data array |
|
60 | + $data[ $property ] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
61 | + } |
|
62 | + } |
|
63 | 63 | |
64 | - return $data; |
|
65 | - } |
|
64 | + return $data; |
|
65 | + } |
|
66 | 66 | } |
@@ -19,17 +19,17 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function getArrayCopy() |
21 | 21 | { |
22 | - $data = []; |
|
22 | + $data = [ ]; |
|
23 | 23 | $properties = get_object_vars($this); |
24 | 24 | $reflectionClass = new \Zend_Reflection_Class($this); |
25 | 25 | foreach ($properties as $property => $value) { |
26 | 26 | // Skip property if it is not accessible |
27 | - if (! $reflectionClass->hasProperty($property)) { |
|
27 | + if (!$reflectionClass->hasProperty($property)) { |
|
28 | 28 | continue; |
29 | 29 | } |
30 | 30 | |
31 | 31 | // Only process properties that aren't null |
32 | - if (! is_null($value)) { |
|
32 | + if (!is_null($value)) { |
|
33 | 33 | // Gather phpdoc from property |
34 | 34 | $phpDoc = $reflectionClass->getProperty($property)->getDocComment(); |
35 | 35 | $type = $phpDoc->getTag('var')->getDescription(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | // Prepend 'get' to the getter method. |
39 | 39 | $getter = 'get' . ucfirst($property); |
40 | - if (is_object($value) && ! $this->$property instanceof Expr) { |
|
40 | + if (is_object($value) && !$this->$property instanceof Expr) { |
|
41 | 41 | $object = true; |
42 | 42 | } |
43 | 43 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | // Abort if the method does not exist |
55 | - if (! method_exists($this, $getter)) { |
|
55 | + if (!method_exists($this, $getter)) { |
|
56 | 56 | continue; |
57 | 57 | } |
58 | 58 |
@@ -14,48 +14,48 @@ |
||
14 | 14 | */ |
15 | 15 | class Layout implements ArraySerializableInterface, \JsonSerializable |
16 | 16 | { |
17 | - use ArraySerializable; |
|
18 | - |
|
19 | - /** |
|
20 | - * @var int|Padding |
|
21 | - */ |
|
22 | - private $padding; |
|
23 | - |
|
24 | - /** |
|
25 | - * @param int $padding |
|
26 | - */ |
|
27 | - public function setPadding($padding) |
|
28 | - { |
|
29 | - $this->padding = intval($padding); |
|
30 | - } |
|
31 | - |
|
32 | - /** |
|
33 | - * @return int|Padding |
|
34 | - */ |
|
35 | - public function getPadding() |
|
36 | - { |
|
37 | - return $this->padding; |
|
38 | - } |
|
39 | - |
|
40 | - /** |
|
41 | - * @return Padding |
|
42 | - */ |
|
43 | - public function padding() |
|
44 | - { |
|
45 | - if (is_null($this->padding)) { |
|
46 | - $this->padding = new Padding(); |
|
47 | - } |
|
48 | - |
|
49 | - return $this->padding; |
|
50 | - } |
|
51 | - |
|
52 | - /** |
|
53 | - * @return string |
|
54 | - * @throws \ReflectionException |
|
55 | - * @throws \Zend_Reflection_Exception |
|
56 | - */ |
|
57 | - public function jsonSerialize() |
|
58 | - { |
|
59 | - return Json::encode($this->getArrayCopy()); |
|
60 | - } |
|
17 | + use ArraySerializable; |
|
18 | + |
|
19 | + /** |
|
20 | + * @var int|Padding |
|
21 | + */ |
|
22 | + private $padding; |
|
23 | + |
|
24 | + /** |
|
25 | + * @param int $padding |
|
26 | + */ |
|
27 | + public function setPadding($padding) |
|
28 | + { |
|
29 | + $this->padding = intval($padding); |
|
30 | + } |
|
31 | + |
|
32 | + /** |
|
33 | + * @return int|Padding |
|
34 | + */ |
|
35 | + public function getPadding() |
|
36 | + { |
|
37 | + return $this->padding; |
|
38 | + } |
|
39 | + |
|
40 | + /** |
|
41 | + * @return Padding |
|
42 | + */ |
|
43 | + public function padding() |
|
44 | + { |
|
45 | + if (is_null($this->padding)) { |
|
46 | + $this->padding = new Padding(); |
|
47 | + } |
|
48 | + |
|
49 | + return $this->padding; |
|
50 | + } |
|
51 | + |
|
52 | + /** |
|
53 | + * @return string |
|
54 | + * @throws \ReflectionException |
|
55 | + * @throws \Zend_Reflection_Exception |
|
56 | + */ |
|
57 | + public function jsonSerialize() |
|
58 | + { |
|
59 | + return Json::encode($this->getArrayCopy()); |
|
60 | + } |
|
61 | 61 | } |