GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#59)
by
unknown
02:14
created
src/Options/Elements.php 1 patch
Indentation   +111 added lines, -111 removed lines patch added patch discarded remove patch
@@ -17,115 +17,115 @@
 block discarded – undo
17 17
  */
18 18
 class Elements implements ArraySerializableInterface, \JsonSerializable
19 19
 {
20
-    use ArraySerializable;
21
-
22
-    /**
23
-     * @var Rectangle
24
-     */
25
-    private $rectangle;
26
-
27
-    /**
28
-     * @var Line
29
-     */
30
-    private $line;
31
-
32
-    /**
33
-     * @var Point
34
-     */
35
-    private $point;
36
-
37
-    /**
38
-     * @var Arc
39
-     */
40
-    private $arc;
41
-
42
-    /**
43
-     * @return Rectangle
44
-     */
45
-    public function getRectangle()
46
-    {
47
-        return $this->rectangle;
48
-    }
49
-
50
-    /**
51
-     * @return Rectangle
52
-     */
53
-    public function rectangle()
54
-    {
55
-        if (is_null($this->rectangle)) {
56
-            $this->rectangle = new Rectangle();
57
-        }
58
-
59
-        return $this->rectangle;
60
-    }
61
-
62
-    /**
63
-     * @return Line
64
-     */
65
-    public function getLine()
66
-    {
67
-        return $this->line;
68
-    }
69
-
70
-    /**
71
-     * @return Line
72
-     */
73
-    public function line()
74
-    {
75
-        if (is_null($this->line)) {
76
-            $this->line = new Line();
77
-        }
78
-
79
-        return $this->line;
80
-    }
81
-
82
-    /**
83
-     * @return Point
84
-     */
85
-    public function getPoint()
86
-    {
87
-        return $this->point;
88
-    }
89
-
90
-    /**
91
-     * @return Point
92
-     */
93
-    public function point()
94
-    {
95
-        if (is_null($this->point)) {
96
-            $this->point = new Point();
97
-        }
98
-
99
-        return $this->point;
100
-    }
101
-
102
-    /**
103
-     * @return Arc
104
-     */
105
-    public function getArc()
106
-    {
107
-        return $this->arc;
108
-    }
109
-
110
-    /**
111
-     * @return Arc
112
-     */
113
-    public function arc()
114
-    {
115
-        if (is_null($this->arc)) {
116
-            $this->arc = new Arc();
117
-        }
118
-
119
-        return $this->arc;
120
-    }
121
-
122
-    /**
123
-     * @return string
124
-     * @throws \ReflectionException
125
-     * @throws \Zend_Reflection_Exception
126
-     */
127
-    public function jsonSerialize()
128
-    {
129
-        return Json::encode($this->getArrayCopy());
130
-    }
20
+	use ArraySerializable;
21
+
22
+	/**
23
+	 * @var Rectangle
24
+	 */
25
+	private $rectangle;
26
+
27
+	/**
28
+	 * @var Line
29
+	 */
30
+	private $line;
31
+
32
+	/**
33
+	 * @var Point
34
+	 */
35
+	private $point;
36
+
37
+	/**
38
+	 * @var Arc
39
+	 */
40
+	private $arc;
41
+
42
+	/**
43
+	 * @return Rectangle
44
+	 */
45
+	public function getRectangle()
46
+	{
47
+		return $this->rectangle;
48
+	}
49
+
50
+	/**
51
+	 * @return Rectangle
52
+	 */
53
+	public function rectangle()
54
+	{
55
+		if (is_null($this->rectangle)) {
56
+			$this->rectangle = new Rectangle();
57
+		}
58
+
59
+		return $this->rectangle;
60
+	}
61
+
62
+	/**
63
+	 * @return Line
64
+	 */
65
+	public function getLine()
66
+	{
67
+		return $this->line;
68
+	}
69
+
70
+	/**
71
+	 * @return Line
72
+	 */
73
+	public function line()
74
+	{
75
+		if (is_null($this->line)) {
76
+			$this->line = new Line();
77
+		}
78
+
79
+		return $this->line;
80
+	}
81
+
82
+	/**
83
+	 * @return Point
84
+	 */
85
+	public function getPoint()
86
+	{
87
+		return $this->point;
88
+	}
89
+
90
+	/**
91
+	 * @return Point
92
+	 */
93
+	public function point()
94
+	{
95
+		if (is_null($this->point)) {
96
+			$this->point = new Point();
97
+		}
98
+
99
+		return $this->point;
100
+	}
101
+
102
+	/**
103
+	 * @return Arc
104
+	 */
105
+	public function getArc()
106
+	{
107
+		return $this->arc;
108
+	}
109
+
110
+	/**
111
+	 * @return Arc
112
+	 */
113
+	public function arc()
114
+	{
115
+		if (is_null($this->arc)) {
116
+			$this->arc = new Arc();
117
+		}
118
+
119
+		return $this->arc;
120
+	}
121
+
122
+	/**
123
+	 * @return string
124
+	 * @throws \ReflectionException
125
+	 * @throws \Zend_Reflection_Exception
126
+	 */
127
+	public function jsonSerialize()
128
+	{
129
+		return Json::encode($this->getArrayCopy());
130
+	}
131 131
 }
Please login to merge, or discard this patch.
src/Options/Elements/Line.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
         if (is_array($borderDash)) {
216 216
             array_walk_recursive(
217 217
                 $borderDash,
218
-                function (&$value) {
218
+                function(&$value) {
219 219
                     $value = intval($value);
220 220
                 }
221 221
             );
Please login to merge, or discard this patch.
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -13,314 +13,314 @@
 block discarded – undo
13 13
  */
14 14
 class Line implements ArraySerializableInterface, \JsonSerializable
15 15
 {
16
-    use ArraySerializable;
17
-
18
-    /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap */
19
-    const CAP_STYLE_BUTT = 'butt';
20
-    const CAP_STYLE_ROUND = 'round';
21
-    const CAP_STYLE_SQUARE = 'square';
22
-
23
-    /** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin */
24
-    const JOIN_STYLE_ROUND = 'round';
25
-    const JOIN_STYLE_BEVEL = 'bevel';
26
-    const JOIN_STYLE_MITER = 'miter';
27
-
28
-    const FILL_LOCATION_ZERO = 'zero';
29
-    const FILL_LOCATION_TOP = 'top';
30
-    const FILL_LOCATION_BOTTOM = 'bottom';
31
-    const FILL_LOCATION_TRUE = true;
32
-    const FILL_LOCATION_FALSE = false;
33
-
34
-    /**
35
-     * Bézier curve tension (0 for no Bézier curves).
36
-     * @default 0.4
37
-     * @var float
38
-     */
39
-    private $tension;
40
-
41
-    /**
42
-     * Line fill color.
43
-     * @default 'rgba(0,0,0,0.1)'
44
-     * @var string
45
-     */
46
-    private $backgroundColor;
47
-
48
-    /**
49
-     * Line stroke width.
50
-     * @default 3
51
-     * @var int
52
-     */
53
-    private $borderWidth;
54
-
55
-    /**
56
-     * Line stroke color.
57
-     * @default 'rgba(0,0,0,0.1)'
58
-     * @var string
59
-     */
60
-    private $borderColor;
61
-
62
-    /**
63
-     * Line cap style.
64
-     * @default self::CAP_STYLE_BUTT
65
-     * @var string
66
-     */
67
-    private $borderCapStyle;
68
-
69
-    /**
70
-     * Line dash. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
71
-     * @default []
72
-     * @var int[]
73
-     */
74
-    private $borderDash;
75
-
76
-    /**
77
-     * Line dash offset.
78
-     * @default 0
79
-     * @var float
80
-     */
81
-    private $borderDashOffset;
82
-
83
-    /**
84
-     * Line join style.
85
-     * @default self::JOIN_STYLE_MITER
86
-     * @var string
87
-     */
88
-    private $borderJoinStyle;
89
-
90
-    /**
91
-     * true to keep Bézier control inside the chart, false for no restriction.
92
-     * @default true
93
-     * @var bool
94
-     */
95
-    private $capBezierPoints;
96
-
97
-    /**
98
-     * Fill location: 'zero', 'top', 'bottom', true (eq. 'zero') or false (no fill).
99
-     * @default self::FILL_LOCATION_TRUE
100
-     * @var bool|string
101
-     */
102
-    private $fill;
103
-
104
-    /**
105
-     * true to show the line as a stepped line (tension will be ignored).
106
-     * @default false
107
-     * @var bool
108
-     */
109
-    private $stepped;
110
-
111
-    /**
112
-     * @return float
113
-     */
114
-    public function getTension()
115
-    {
116
-        return $this->tension;
117
-    }
118
-
119
-    /**
120
-     * @param float $tension
121
-     * @return Line
122
-     */
123
-    public function setTension($tension)
124
-    {
125
-        $this->tension = floatval($tension);
126
-        return $this;
127
-    }
128
-
129
-    /**
130
-     * @return string
131
-     */
132
-    public function getBackgroundColor()
133
-    {
134
-        return $this->backgroundColor;
135
-    }
136
-
137
-    /**
138
-     * @param string $backgroundColor
139
-     * @return Line
140
-     */
141
-    public function setBackgroundColor($backgroundColor)
142
-    {
143
-        $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
144
-        return $this;
145
-    }
146
-
147
-    /**
148
-     * @return int
149
-     */
150
-    public function getBorderWidth()
151
-    {
152
-        return $this->borderWidth;
153
-    }
154
-
155
-    /**
156
-     * @param int $borderWidth
157
-     * @return Line
158
-     */
159
-    public function setBorderWidth($borderWidth)
160
-    {
161
-        $this->borderWidth = intval($borderWidth);
162
-        return $this;
163
-    }
164
-
165
-    /**
166
-     * @return string
167
-     */
168
-    public function getBorderColor()
169
-    {
170
-        return $this->borderColor;
171
-    }
172
-
173
-    /**
174
-     * @param string $borderColor
175
-     * @return Line
176
-     */
177
-    public function setBorderColor($borderColor)
178
-    {
179
-        $this->borderColor = is_null($borderColor) ? null : strval($borderColor);
180
-        return $this;
181
-    }
182
-
183
-    /**
184
-     * @return string
185
-     */
186
-    public function getBorderCapStyle()
187
-    {
188
-        return $this->borderCapStyle;
189
-    }
190
-
191
-    /**
192
-     * @param string $borderCapStyle
193
-     * @return Line
194
-     */
195
-    public function setBorderCapStyle($borderCapStyle)
196
-    {
197
-        $this->borderCapStyle = is_null($borderCapStyle) ? null : strval($borderCapStyle);
198
-        return $this;
199
-    }
200
-
201
-    /**
202
-     * @return int[]
203
-     */
204
-    public function getBorderDash()
205
-    {
206
-        return $this->borderDash;
207
-    }
208
-
209
-    /**
210
-     * @param int[] $borderDash
211
-     * @return Line
212
-     */
213
-    public function setBorderDash($borderDash)
214
-    {
215
-        if (is_array($borderDash)) {
216
-            array_walk_recursive(
217
-                $borderDash,
218
-                function (&$value) {
219
-                    $value = intval($value);
220
-                }
221
-            );
222
-            $this->borderDash = $borderDash;
223
-        }
224
-        return $this;
225
-    }
226
-
227
-    /**
228
-     * @return float
229
-     */
230
-    public function getBorderDashOffset()
231
-    {
232
-        return $this->borderDashOffset;
233
-    }
234
-
235
-    /**
236
-     * @param float $borderDashOffset
237
-     * @return Line
238
-     */
239
-    public function setBorderDashOffset($borderDashOffset)
240
-    {
241
-        $this->borderDashOffset = floatval($borderDashOffset);
242
-        return $this;
243
-    }
244
-
245
-    /**
246
-     * @return string
247
-     */
248
-    public function getBorderJoinStyle()
249
-    {
250
-        return $this->borderJoinStyle;
251
-    }
252
-
253
-    /**
254
-     * @param string $borderJoinStyle
255
-     * @return Line
256
-     */
257
-    public function setBorderJoinStyle($borderJoinStyle)
258
-    {
259
-        $this->borderJoinStyle = is_null($borderJoinStyle) ? null : strval($borderJoinStyle);
260
-        return $this;
261
-    }
262
-
263
-    /**
264
-     * @return bool
265
-     */
266
-    public function isCapBezierPoints()
267
-    {
268
-        return $this->capBezierPoints;
269
-    }
270
-
271
-    /**
272
-     * @param bool $capBezierPoints
273
-     * @return Line
274
-     */
275
-    public function setCapBezierPoints($capBezierPoints)
276
-    {
277
-        $this->capBezierPoints = boolval($capBezierPoints);
278
-        return $this;
279
-    }
280
-
281
-    /**
282
-     * @return bool|string
283
-     */
284
-    public function getFill()
285
-    {
286
-        return $this->fill;
287
-    }
288
-
289
-    /**
290
-     * @param bool|string $fill
291
-     * @return Line
292
-     */
293
-    public function setFill($fill)
294
-    {
295
-        $this->fill = is_null($fill) ? null : (is_bool($fill) ? $fill : strval($fill));
296
-        return $this;
297
-    }
298
-
299
-    /**
300
-     * @return bool
301
-     */
302
-    public function isStepped()
303
-    {
304
-        return $this->stepped;
305
-    }
306
-
307
-    /**
308
-     * @param bool $stepped
309
-     * @return Line
310
-     */
311
-    public function setStepped($stepped)
312
-    {
313
-        $this->stepped = boolval($stepped);
314
-        return $this;
315
-    }
316
-
317
-    /**
318
-     * @return string
319
-     * @throws \ReflectionException
320
-     * @throws \Zend_Reflection_Exception
321
-     */
322
-    public function jsonSerialize()
323
-    {
324
-        return Json::encode($this->getArrayCopy());
325
-    }
16
+	use ArraySerializable;
17
+
18
+	/** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap */
19
+	const CAP_STYLE_BUTT = 'butt';
20
+	const CAP_STYLE_ROUND = 'round';
21
+	const CAP_STYLE_SQUARE = 'square';
22
+
23
+	/** https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin */
24
+	const JOIN_STYLE_ROUND = 'round';
25
+	const JOIN_STYLE_BEVEL = 'bevel';
26
+	const JOIN_STYLE_MITER = 'miter';
27
+
28
+	const FILL_LOCATION_ZERO = 'zero';
29
+	const FILL_LOCATION_TOP = 'top';
30
+	const FILL_LOCATION_BOTTOM = 'bottom';
31
+	const FILL_LOCATION_TRUE = true;
32
+	const FILL_LOCATION_FALSE = false;
33
+
34
+	/**
35
+	 * Bézier curve tension (0 for no Bézier curves).
36
+	 * @default 0.4
37
+	 * @var float
38
+	 */
39
+	private $tension;
40
+
41
+	/**
42
+	 * Line fill color.
43
+	 * @default 'rgba(0,0,0,0.1)'
44
+	 * @var string
45
+	 */
46
+	private $backgroundColor;
47
+
48
+	/**
49
+	 * Line stroke width.
50
+	 * @default 3
51
+	 * @var int
52
+	 */
53
+	private $borderWidth;
54
+
55
+	/**
56
+	 * Line stroke color.
57
+	 * @default 'rgba(0,0,0,0.1)'
58
+	 * @var string
59
+	 */
60
+	private $borderColor;
61
+
62
+	/**
63
+	 * Line cap style.
64
+	 * @default self::CAP_STYLE_BUTT
65
+	 * @var string
66
+	 */
67
+	private $borderCapStyle;
68
+
69
+	/**
70
+	 * Line dash. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
71
+	 * @default []
72
+	 * @var int[]
73
+	 */
74
+	private $borderDash;
75
+
76
+	/**
77
+	 * Line dash offset.
78
+	 * @default 0
79
+	 * @var float
80
+	 */
81
+	private $borderDashOffset;
82
+
83
+	/**
84
+	 * Line join style.
85
+	 * @default self::JOIN_STYLE_MITER
86
+	 * @var string
87
+	 */
88
+	private $borderJoinStyle;
89
+
90
+	/**
91
+	 * true to keep Bézier control inside the chart, false for no restriction.
92
+	 * @default true
93
+	 * @var bool
94
+	 */
95
+	private $capBezierPoints;
96
+
97
+	/**
98
+	 * Fill location: 'zero', 'top', 'bottom', true (eq. 'zero') or false (no fill).
99
+	 * @default self::FILL_LOCATION_TRUE
100
+	 * @var bool|string
101
+	 */
102
+	private $fill;
103
+
104
+	/**
105
+	 * true to show the line as a stepped line (tension will be ignored).
106
+	 * @default false
107
+	 * @var bool
108
+	 */
109
+	private $stepped;
110
+
111
+	/**
112
+	 * @return float
113
+	 */
114
+	public function getTension()
115
+	{
116
+		return $this->tension;
117
+	}
118
+
119
+	/**
120
+	 * @param float $tension
121
+	 * @return Line
122
+	 */
123
+	public function setTension($tension)
124
+	{
125
+		$this->tension = floatval($tension);
126
+		return $this;
127
+	}
128
+
129
+	/**
130
+	 * @return string
131
+	 */
132
+	public function getBackgroundColor()
133
+	{
134
+		return $this->backgroundColor;
135
+	}
136
+
137
+	/**
138
+	 * @param string $backgroundColor
139
+	 * @return Line
140
+	 */
141
+	public function setBackgroundColor($backgroundColor)
142
+	{
143
+		$this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
144
+		return $this;
145
+	}
146
+
147
+	/**
148
+	 * @return int
149
+	 */
150
+	public function getBorderWidth()
151
+	{
152
+		return $this->borderWidth;
153
+	}
154
+
155
+	/**
156
+	 * @param int $borderWidth
157
+	 * @return Line
158
+	 */
159
+	public function setBorderWidth($borderWidth)
160
+	{
161
+		$this->borderWidth = intval($borderWidth);
162
+		return $this;
163
+	}
164
+
165
+	/**
166
+	 * @return string
167
+	 */
168
+	public function getBorderColor()
169
+	{
170
+		return $this->borderColor;
171
+	}
172
+
173
+	/**
174
+	 * @param string $borderColor
175
+	 * @return Line
176
+	 */
177
+	public function setBorderColor($borderColor)
178
+	{
179
+		$this->borderColor = is_null($borderColor) ? null : strval($borderColor);
180
+		return $this;
181
+	}
182
+
183
+	/**
184
+	 * @return string
185
+	 */
186
+	public function getBorderCapStyle()
187
+	{
188
+		return $this->borderCapStyle;
189
+	}
190
+
191
+	/**
192
+	 * @param string $borderCapStyle
193
+	 * @return Line
194
+	 */
195
+	public function setBorderCapStyle($borderCapStyle)
196
+	{
197
+		$this->borderCapStyle = is_null($borderCapStyle) ? null : strval($borderCapStyle);
198
+		return $this;
199
+	}
200
+
201
+	/**
202
+	 * @return int[]
203
+	 */
204
+	public function getBorderDash()
205
+	{
206
+		return $this->borderDash;
207
+	}
208
+
209
+	/**
210
+	 * @param int[] $borderDash
211
+	 * @return Line
212
+	 */
213
+	public function setBorderDash($borderDash)
214
+	{
215
+		if (is_array($borderDash)) {
216
+			array_walk_recursive(
217
+				$borderDash,
218
+				function (&$value) {
219
+					$value = intval($value);
220
+				}
221
+			);
222
+			$this->borderDash = $borderDash;
223
+		}
224
+		return $this;
225
+	}
226
+
227
+	/**
228
+	 * @return float
229
+	 */
230
+	public function getBorderDashOffset()
231
+	{
232
+		return $this->borderDashOffset;
233
+	}
234
+
235
+	/**
236
+	 * @param float $borderDashOffset
237
+	 * @return Line
238
+	 */
239
+	public function setBorderDashOffset($borderDashOffset)
240
+	{
241
+		$this->borderDashOffset = floatval($borderDashOffset);
242
+		return $this;
243
+	}
244
+
245
+	/**
246
+	 * @return string
247
+	 */
248
+	public function getBorderJoinStyle()
249
+	{
250
+		return $this->borderJoinStyle;
251
+	}
252
+
253
+	/**
254
+	 * @param string $borderJoinStyle
255
+	 * @return Line
256
+	 */
257
+	public function setBorderJoinStyle($borderJoinStyle)
258
+	{
259
+		$this->borderJoinStyle = is_null($borderJoinStyle) ? null : strval($borderJoinStyle);
260
+		return $this;
261
+	}
262
+
263
+	/**
264
+	 * @return bool
265
+	 */
266
+	public function isCapBezierPoints()
267
+	{
268
+		return $this->capBezierPoints;
269
+	}
270
+
271
+	/**
272
+	 * @param bool $capBezierPoints
273
+	 * @return Line
274
+	 */
275
+	public function setCapBezierPoints($capBezierPoints)
276
+	{
277
+		$this->capBezierPoints = boolval($capBezierPoints);
278
+		return $this;
279
+	}
280
+
281
+	/**
282
+	 * @return bool|string
283
+	 */
284
+	public function getFill()
285
+	{
286
+		return $this->fill;
287
+	}
288
+
289
+	/**
290
+	 * @param bool|string $fill
291
+	 * @return Line
292
+	 */
293
+	public function setFill($fill)
294
+	{
295
+		$this->fill = is_null($fill) ? null : (is_bool($fill) ? $fill : strval($fill));
296
+		return $this;
297
+	}
298
+
299
+	/**
300
+	 * @return bool
301
+	 */
302
+	public function isStepped()
303
+	{
304
+		return $this->stepped;
305
+	}
306
+
307
+	/**
308
+	 * @param bool $stepped
309
+	 * @return Line
310
+	 */
311
+	public function setStepped($stepped)
312
+	{
313
+		$this->stepped = boolval($stepped);
314
+		return $this;
315
+	}
316
+
317
+	/**
318
+	 * @return string
319
+	 * @throws \ReflectionException
320
+	 * @throws \Zend_Reflection_Exception
321
+	 */
322
+	public function jsonSerialize()
323
+	{
324
+		return Json::encode($this->getArrayCopy());
325
+	}
326 326
 }
327 327
\ No newline at end of file
Please login to merge, or discard this patch.
src/Options.php 2 patches
Indentation   +146 added lines, -146 removed lines patch added patch discarded remove patch
@@ -19,150 +19,150 @@
 block discarded – undo
19 19
  */
20 20
 class Options implements ChartOwnedInterface, ArraySerializableInterface, \JsonSerializable
21 21
 {
22
-    use ChartOwned;
23
-    use ArraySerializable;
24
-
25
-    /**
26
-     * @var Layout
27
-     */
28
-    protected $layout;
29
-
30
-    /**
31
-     * @var Title
32
-     */
33
-    protected $title;
34
-
35
-    /**
36
-     * @var Elements
37
-     */
38
-    protected $elements;
39
-
40
-    /**
41
-     * @var Hover
42
-     */
43
-    protected $hover;
44
-
45
-    /**
46
-     * @var Scales
47
-     */
48
-    protected $scales;
49
-
50
-    /**
51
-     * @var Animation
52
-     */
53
-    protected $animation;
54
-
55
-    /**
56
-     * @var Legend
57
-     */
58
-    protected $legend;
59
-
60
-    /**
61
-     * @var Tooltips
62
-     */
63
-    protected $tooltips;
64
-
65
-    /**
66
-     * @return Layout
67
-     */
68
-    public function getLayout()
69
-    {
70
-        if (is_null($this->layout)) {
71
-            $this->layout   = new Layout();
72
-        }
73
-
74
-        return $this->layout;
75
-    }
76
-
77
-    /**
78
-     * @return Elements
79
-     */
80
-    public function getElements()
81
-    {
82
-        if (is_null($this->elements)) {
83
-            $this->elements   = new Elements();
84
-        }
85
-
86
-        return $this->elements;
87
-    }
88
-
89
-    /**
90
-     * @return Title
91
-     */
92
-    public function getTitle()
93
-    {
94
-        if (is_null($this->title)) {
95
-            $this->title = new Title();
96
-        }
97
-
98
-        return $this->title;
99
-    }
100
-
101
-    /**
102
-     * @return Hover
103
-     */
104
-    public function getHover()
105
-    {
106
-        if (is_null($this->hover)) {
107
-            $this->hover = new Hover();
108
-        }
109
-
110
-        return $this->hover;
111
-    }
112
-
113
-    /**
114
-     * @return Scales
115
-     */
116
-    public function getScales()
117
-    {
118
-        if (is_null($this->scales)) {
119
-            $this->scales = new Scales();
120
-        }
121
-
122
-        return $this->scales;
123
-    }
124
-
125
-    /**
126
-     * @return Animation
127
-     */
128
-    public function getAnimation()
129
-    {
130
-        if (is_null($this->animation)) {
131
-            $this->animation = new Animation();
132
-        }
133
-
134
-        return $this->animation;
135
-    }
136
-
137
-    /**
138
-     * @return Legend
139
-     */
140
-    public function getLegend()
141
-    {
142
-        if (is_null($this->legend)) {
143
-            $this->legend = new Legend();
144
-        }
145
-
146
-        return $this->legend;
147
-    }
148
-
149
-    /**
150
-     * @return Tooltips
151
-     */
152
-    public function getTooltips()
153
-    {
154
-        if (is_null($this->tooltips)) {
155
-            $this->tooltips = new Tooltips();
156
-        }
157
-
158
-        return $this->tooltips;
159
-    }
160
-
161
-    /**
162
-     * @return string
163
-     */
164
-    public function jsonSerialize()
165
-    {
166
-        return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]);
167
-    }
22
+	use ChartOwned;
23
+	use ArraySerializable;
24
+
25
+	/**
26
+	 * @var Layout
27
+	 */
28
+	protected $layout;
29
+
30
+	/**
31
+	 * @var Title
32
+	 */
33
+	protected $title;
34
+
35
+	/**
36
+	 * @var Elements
37
+	 */
38
+	protected $elements;
39
+
40
+	/**
41
+	 * @var Hover
42
+	 */
43
+	protected $hover;
44
+
45
+	/**
46
+	 * @var Scales
47
+	 */
48
+	protected $scales;
49
+
50
+	/**
51
+	 * @var Animation
52
+	 */
53
+	protected $animation;
54
+
55
+	/**
56
+	 * @var Legend
57
+	 */
58
+	protected $legend;
59
+
60
+	/**
61
+	 * @var Tooltips
62
+	 */
63
+	protected $tooltips;
64
+
65
+	/**
66
+	 * @return Layout
67
+	 */
68
+	public function getLayout()
69
+	{
70
+		if (is_null($this->layout)) {
71
+			$this->layout   = new Layout();
72
+		}
73
+
74
+		return $this->layout;
75
+	}
76
+
77
+	/**
78
+	 * @return Elements
79
+	 */
80
+	public function getElements()
81
+	{
82
+		if (is_null($this->elements)) {
83
+			$this->elements   = new Elements();
84
+		}
85
+
86
+		return $this->elements;
87
+	}
88
+
89
+	/**
90
+	 * @return Title
91
+	 */
92
+	public function getTitle()
93
+	{
94
+		if (is_null($this->title)) {
95
+			$this->title = new Title();
96
+		}
97
+
98
+		return $this->title;
99
+	}
100
+
101
+	/**
102
+	 * @return Hover
103
+	 */
104
+	public function getHover()
105
+	{
106
+		if (is_null($this->hover)) {
107
+			$this->hover = new Hover();
108
+		}
109
+
110
+		return $this->hover;
111
+	}
112
+
113
+	/**
114
+	 * @return Scales
115
+	 */
116
+	public function getScales()
117
+	{
118
+		if (is_null($this->scales)) {
119
+			$this->scales = new Scales();
120
+		}
121
+
122
+		return $this->scales;
123
+	}
124
+
125
+	/**
126
+	 * @return Animation
127
+	 */
128
+	public function getAnimation()
129
+	{
130
+		if (is_null($this->animation)) {
131
+			$this->animation = new Animation();
132
+		}
133
+
134
+		return $this->animation;
135
+	}
136
+
137
+	/**
138
+	 * @return Legend
139
+	 */
140
+	public function getLegend()
141
+	{
142
+		if (is_null($this->legend)) {
143
+			$this->legend = new Legend();
144
+		}
145
+
146
+		return $this->legend;
147
+	}
148
+
149
+	/**
150
+	 * @return Tooltips
151
+	 */
152
+	public function getTooltips()
153
+	{
154
+		if (is_null($this->tooltips)) {
155
+			$this->tooltips = new Tooltips();
156
+		}
157
+
158
+		return $this->tooltips;
159
+	}
160
+
161
+	/**
162
+	 * @return string
163
+	 */
164
+	public function jsonSerialize()
165
+	{
166
+		return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]);
167
+	}
168 168
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function getLayout()
69 69
     {
70 70
         if (is_null($this->layout)) {
71
-            $this->layout   = new Layout();
71
+            $this->layout = new Layout();
72 72
         }
73 73
 
74 74
         return $this->layout;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function getElements()
81 81
     {
82 82
         if (is_null($this->elements)) {
83
-            $this->elements   = new Elements();
83
+            $this->elements = new Elements();
84 84
         }
85 85
 
86 86
         return $this->elements;
Please login to merge, or discard this patch.
src/Options/Elements/Rectangle.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -12,123 +12,123 @@
 block discarded – undo
12 12
  */
13 13
 class Rectangle implements ArraySerializableInterface, \JsonSerializable
14 14
 {
15
-    use ArraySerializable;
16
-
17
-    const BORDER_SKIPPED_BOTTOM = 'bottom';
18
-    const BORDER_SKIPPED_LEFT = 'left';
19
-    const BORDER_SKIPPED_TOP = 'top';
20
-    const BORDER_SKIPPED_RIGHT = 'right';
21
-
22
-    /**
23
-     * Bar fill color.
24
-     * @default 'rgba(0,0,0,0.1)'
25
-     * @var string
26
-     */
27
-    private $backgroundColor;
28
-
29
-    /**
30
-     * Bar stroke width.
31
-     * @default 0
32
-     * @var int
33
-     */
34
-    private $borderWidth;
35
-
36
-    /**
37
-     * Bar stroke color.
38
-     * @default 'rgba(0,0,0,0.1)'
39
-     * @var string
40
-     */
41
-    private $borderColor;
42
-
43
-    /**
44
-     * Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
45
-     * @default self::BORDER_SKIPPED_BOTTOM
46
-     * @var string
47
-     */
48
-    private $borderSkipped;
49
-
50
-    /**
51
-     * @return string
52
-     */
53
-    public function getBackgroundColor()
54
-    {
55
-        return $this->backgroundColor;
56
-    }
57
-
58
-    /**
59
-     * @param string $backgroundColor
60
-     * @return Rectangle
61
-     */
62
-    public function setBackgroundColor($backgroundColor)
63
-    {
64
-        $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
65
-        return $this;
66
-    }
67
-
68
-    /**
69
-     * @return int
70
-     */
71
-    public function getBorderWidth()
72
-    {
73
-        return $this->borderWidth;
74
-    }
75
-
76
-    /**
77
-     * @param int $borderWidth
78
-     * @return Rectangle
79
-     */
80
-    public function setBorderWidth($borderWidth)
81
-    {
82
-        $this->borderWidth = intval($borderWidth);
83
-        return $this;
84
-    }
85
-
86
-    /**
87
-     * @return string
88
-     */
89
-    public function getBorderColor()
90
-    {
91
-        return $this->borderColor;
92
-    }
93
-
94
-    /**
95
-     * @param string $borderColor
96
-     * @return Rectangle
97
-     */
98
-    public function setBorderColor($borderColor)
99
-    {
100
-        $this->borderColor = is_null($borderColor) ? null : strval($borderColor);
101
-        return $this;
102
-    }
103
-
104
-    /**
105
-     * @return string
106
-     */
107
-    public function getBorderSkipped()
108
-    {
109
-        return $this->borderSkipped;
110
-    }
111
-
112
-    /**
113
-     * @param string $borderSkipped
114
-     * @return Rectangle
115
-     */
116
-    public function setBorderSkipped($borderSkipped)
117
-    {
118
-        $this->borderSkipped = is_null($borderSkipped) ? null : strval($borderSkipped);
119
-        return $this;
120
-    }
121
-
122
-
123
-
124
-    /**
125
-     * @return string
126
-     * @throws \ReflectionException
127
-     * @throws \Zend_Reflection_Exception
128
-     */
129
-    public function jsonSerialize()
130
-    {
131
-        return Json::encode($this->getArrayCopy());
132
-    }
15
+	use ArraySerializable;
16
+
17
+	const BORDER_SKIPPED_BOTTOM = 'bottom';
18
+	const BORDER_SKIPPED_LEFT = 'left';
19
+	const BORDER_SKIPPED_TOP = 'top';
20
+	const BORDER_SKIPPED_RIGHT = 'right';
21
+
22
+	/**
23
+	 * Bar fill color.
24
+	 * @default 'rgba(0,0,0,0.1)'
25
+	 * @var string
26
+	 */
27
+	private $backgroundColor;
28
+
29
+	/**
30
+	 * Bar stroke width.
31
+	 * @default 0
32
+	 * @var int
33
+	 */
34
+	private $borderWidth;
35
+
36
+	/**
37
+	 * Bar stroke color.
38
+	 * @default 'rgba(0,0,0,0.1)'
39
+	 * @var string
40
+	 */
41
+	private $borderColor;
42
+
43
+	/**
44
+	 * Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
45
+	 * @default self::BORDER_SKIPPED_BOTTOM
46
+	 * @var string
47
+	 */
48
+	private $borderSkipped;
49
+
50
+	/**
51
+	 * @return string
52
+	 */
53
+	public function getBackgroundColor()
54
+	{
55
+		return $this->backgroundColor;
56
+	}
57
+
58
+	/**
59
+	 * @param string $backgroundColor
60
+	 * @return Rectangle
61
+	 */
62
+	public function setBackgroundColor($backgroundColor)
63
+	{
64
+		$this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
65
+		return $this;
66
+	}
67
+
68
+	/**
69
+	 * @return int
70
+	 */
71
+	public function getBorderWidth()
72
+	{
73
+		return $this->borderWidth;
74
+	}
75
+
76
+	/**
77
+	 * @param int $borderWidth
78
+	 * @return Rectangle
79
+	 */
80
+	public function setBorderWidth($borderWidth)
81
+	{
82
+		$this->borderWidth = intval($borderWidth);
83
+		return $this;
84
+	}
85
+
86
+	/**
87
+	 * @return string
88
+	 */
89
+	public function getBorderColor()
90
+	{
91
+		return $this->borderColor;
92
+	}
93
+
94
+	/**
95
+	 * @param string $borderColor
96
+	 * @return Rectangle
97
+	 */
98
+	public function setBorderColor($borderColor)
99
+	{
100
+		$this->borderColor = is_null($borderColor) ? null : strval($borderColor);
101
+		return $this;
102
+	}
103
+
104
+	/**
105
+	 * @return string
106
+	 */
107
+	public function getBorderSkipped()
108
+	{
109
+		return $this->borderSkipped;
110
+	}
111
+
112
+	/**
113
+	 * @param string $borderSkipped
114
+	 * @return Rectangle
115
+	 */
116
+	public function setBorderSkipped($borderSkipped)
117
+	{
118
+		$this->borderSkipped = is_null($borderSkipped) ? null : strval($borderSkipped);
119
+		return $this;
120
+	}
121
+
122
+
123
+
124
+	/**
125
+	 * @return string
126
+	 * @throws \ReflectionException
127
+	 * @throws \Zend_Reflection_Exception
128
+	 */
129
+	public function jsonSerialize()
130
+	{
131
+		return Json::encode($this->getArrayCopy());
132
+	}
133 133
 
134 134
 }
135 135
\ No newline at end of file
Please login to merge, or discard this patch.
src/Options/Elements/Arc.php 1 patch
Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -12,90 +12,90 @@
 block discarded – undo
12 12
  */
13 13
 class Arc implements ArraySerializableInterface, \JsonSerializable
14 14
 {
15
-    use ArraySerializable;
15
+	use ArraySerializable;
16 16
 
17
-    /**
18
-     * Arc fill color.
19
-     * @default 'rgba(0,0,0,0.1)'
20
-     * @var string
21
-     */
22
-    private $backgroundColor;
17
+	/**
18
+	 * Arc fill color.
19
+	 * @default 'rgba(0,0,0,0.1)'
20
+	 * @var string
21
+	 */
22
+	private $backgroundColor;
23 23
 
24
-    /**
25
-     * Arc stroke color.
26
-     * @default '#fff'
27
-     * @var string
28
-     */
29
-    private $borderColor;
24
+	/**
25
+	 * Arc stroke color.
26
+	 * @default '#fff'
27
+	 * @var string
28
+	 */
29
+	private $borderColor;
30 30
 
31
-    /**
32
-     * Arc stroke width.
33
-     * @default 2
34
-     * @var int
35
-     */
36
-    private $borderWidth;
31
+	/**
32
+	 * Arc stroke width.
33
+	 * @default 2
34
+	 * @var int
35
+	 */
36
+	private $borderWidth;
37 37
 
38
-    /**
39
-     * @return string
40
-     */
41
-    public function getBackgroundColor()
42
-    {
43
-        return $this->backgroundColor;
44
-    }
38
+	/**
39
+	 * @return string
40
+	 */
41
+	public function getBackgroundColor()
42
+	{
43
+		return $this->backgroundColor;
44
+	}
45 45
 
46
-    /**
47
-     * @param string $backgroundColor
48
-     * @return Arc
49
-     */
50
-    public function setBackgroundColor($backgroundColor)
51
-    {
52
-        $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
53
-        return $this;
54
-    }
46
+	/**
47
+	 * @param string $backgroundColor
48
+	 * @return Arc
49
+	 */
50
+	public function setBackgroundColor($backgroundColor)
51
+	{
52
+		$this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
53
+		return $this;
54
+	}
55 55
 
56
-    /**
57
-     * @return string
58
-     */
59
-    public function getBorderColor()
60
-    {
61
-        return $this->borderColor;
62
-    }
56
+	/**
57
+	 * @return string
58
+	 */
59
+	public function getBorderColor()
60
+	{
61
+		return $this->borderColor;
62
+	}
63 63
 
64
-    /**
65
-     * @param string $borderColor
66
-     * @return Arc
67
-     */
68
-    public function setBorderColor($borderColor)
69
-    {
70
-        $this->borderColor = is_null($borderColor) ? null : strval($borderColor);
71
-        return $this;
72
-    }
64
+	/**
65
+	 * @param string $borderColor
66
+	 * @return Arc
67
+	 */
68
+	public function setBorderColor($borderColor)
69
+	{
70
+		$this->borderColor = is_null($borderColor) ? null : strval($borderColor);
71
+		return $this;
72
+	}
73 73
 
74
-    /**
75
-     * @return int
76
-     */
77
-    public function getBorderWidth()
78
-    {
79
-        return $this->borderWidth;
80
-    }
74
+	/**
75
+	 * @return int
76
+	 */
77
+	public function getBorderWidth()
78
+	{
79
+		return $this->borderWidth;
80
+	}
81 81
 
82
-    /**
83
-     * @param int $borderWidth
84
-     * @return Arc
85
-     */
86
-    public function setBorderWidth($borderWidth)
87
-    {
88
-        $this->borderWidth = intval($borderWidth);
89
-        return $this;
90
-    }
82
+	/**
83
+	 * @param int $borderWidth
84
+	 * @return Arc
85
+	 */
86
+	public function setBorderWidth($borderWidth)
87
+	{
88
+		$this->borderWidth = intval($borderWidth);
89
+		return $this;
90
+	}
91 91
 
92
-    /**
93
-     * @return string
94
-     * @throws \ReflectionException
95
-     * @throws \Zend_Reflection_Exception
96
-     */
97
-    public function jsonSerialize()
98
-    {
99
-        return Json::encode($this->getArrayCopy());
100
-    }
92
+	/**
93
+	 * @return string
94
+	 * @throws \ReflectionException
95
+	 * @throws \Zend_Reflection_Exception
96
+	 */
97
+	public function jsonSerialize()
98
+	{
99
+		return Json::encode($this->getArrayCopy());
100
+	}
101 101
 }
102 102
\ No newline at end of file
Please login to merge, or discard this patch.
src/Options/Elements/Point.php 1 patch
Indentation   +247 added lines, -247 removed lines patch added patch discarded remove patch
@@ -12,251 +12,251 @@
 block discarded – undo
12 12
  */
13 13
 class Point implements ArraySerializableInterface, \JsonSerializable
14 14
 {
15
-    use ArraySerializable;
16
-
17
-    const STYLE_CIRCLE = 'circle';
18
-    const STYLE_CROSS = 'cross';
19
-    const STYLE_CROSS_ROT = 'crossRot';
20
-    const STYLE_DASH = 'dash';
21
-    const STYLE_LINE = 'line';
22
-    const STYLE_RECT = 'rect';
23
-    const STYLE_RECT_ROUNDED = 'rectRounded';
24
-    const STYLE_RECT_ROT = 'rectRot';
25
-    const STYLE_RECT_STAR = 'star';
26
-    const STYLE_TRIANGLE = 'triangle';
27
-
28
-    /**
29
-     * Point radius.
30
-     * @default 3
31
-     * @var int
32
-     */
33
-    private $radius;
34
-
35
-    /**
36
-     * Point style.
37
-     * @default self::STYLE_CIRCLE
38
-     * @var string
39
-     */
40
-    private $pointStyle;
41
-
42
-    /**
43
-     * Point rotation (in degrees).
44
-     * @default 0
45
-     * @var int
46
-     */
47
-    private $rotation;
48
-
49
-    /**
50
-     * Point fill color.
51
-     * @default 'rgba(0,0,0,0.1)'
52
-     * @var string
53
-     */
54
-    private $backgroundColor;
55
-
56
-    /**
57
-     * Point stroke width.
58
-     * @default 1
59
-     * @var int
60
-     */
61
-    private $borderWidth;
62
-
63
-    /**
64
-     * Point stroke color.
65
-     * @default 'rgba(0,0,0,0.1)'
66
-     * @var string
67
-     */
68
-    private $borderColor;
69
-
70
-    /**
71
-     * Extra radius added to point radius for hit detection.
72
-     * @default 1
73
-     * @var int
74
-     */
75
-    private $hitRadius;
76
-
77
-    /**
78
-     * Point radius when hovered.
79
-     * @default 4
80
-     * @var int
81
-     */
82
-    private $hoverRadius;
83
-
84
-    /**
85
-     * Stroke width when hovered.
86
-     * @default 1
87
-     * @var int
88
-     */
89
-    private $hoverBorderWidth;
90
-
91
-    /**
92
-     * @return int
93
-     */
94
-    public function getRadius()
95
-    {
96
-        return $this->radius;
97
-    }
98
-
99
-    /**
100
-     * @param int $radius
101
-     * @return Point
102
-     */
103
-    public function setRadius($radius)
104
-    {
105
-        $this->radius = intval($radius);
106
-        return $this;
107
-    }
108
-
109
-    /**
110
-     * @return string
111
-     */
112
-    public function getPointStyle()
113
-    {
114
-        return $this->pointStyle;
115
-    }
116
-
117
-    /**
118
-     * @param string $pointStyle
119
-     * @return Point
120
-     */
121
-    public function setPointStyle($pointStyle)
122
-    {
123
-        $this->pointStyle = is_null($pointStyle) ? null : strval($pointStyle);
124
-        return $this;
125
-    }
126
-
127
-    /**
128
-     * @return int
129
-     */
130
-    public function getRotation()
131
-    {
132
-        return $this->rotation;
133
-    }
134
-
135
-    /**
136
-     * @param int $rotation
137
-     * @return Point
138
-     */
139
-    public function setRotation($rotation)
140
-    {
141
-        $this->rotation = intval($rotation);
142
-        return $this;
143
-    }
144
-
145
-    /**
146
-     * @return string
147
-     */
148
-    public function getBackgroundColor()
149
-    {
150
-        return $this->backgroundColor;
151
-    }
152
-
153
-    /**
154
-     * @param string $backgroundColor
155
-     * @return Point
156
-     */
157
-    public function setBackgroundColor($backgroundColor)
158
-    {
159
-        $this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
160
-        return $this;
161
-    }
162
-
163
-    /**
164
-     * @return int
165
-     */
166
-    public function getBorderWidth()
167
-    {
168
-        return $this->borderWidth;
169
-    }
170
-
171
-    /**
172
-     * @param int $borderWidth
173
-     * @return Point
174
-     */
175
-    public function setBorderWidth($borderWidth)
176
-    {
177
-        $this->borderWidth = intval($borderWidth);
178
-        return $this;
179
-    }
180
-
181
-    /**
182
-     * @return string
183
-     */
184
-    public function getBorderColor()
185
-    {
186
-        return $this->borderColor;
187
-    }
188
-
189
-    /**
190
-     * @param string $borderColor
191
-     * @return Point
192
-     */
193
-    public function setBorderColor($borderColor)
194
-    {
195
-        $this->borderColor = is_null($borderColor) ? null : strval($borderColor);
196
-        return $this;
197
-    }
198
-
199
-    /**
200
-     * @return int
201
-     */
202
-    public function getHitRadius()
203
-    {
204
-        return $this->hitRadius;
205
-    }
206
-
207
-    /**
208
-     * @param int $hitRadius
209
-     * @return Point
210
-     */
211
-    public function setHitRadius($hitRadius)
212
-    {
213
-        $this->hitRadius = intval($hitRadius);
214
-        return $this;
215
-    }
216
-
217
-    /**
218
-     * @return int
219
-     */
220
-    public function getHoverRadius()
221
-    {
222
-        return $this->hoverRadius;
223
-    }
224
-
225
-    /**
226
-     * @param int $hoverRadius
227
-     * @return Point
228
-     */
229
-    public function setHoverRadius($hoverRadius)
230
-    {
231
-        $this->hoverRadius = intval($hoverRadius);
232
-        return $this;
233
-    }
234
-
235
-    /**
236
-     * @return int
237
-     */
238
-    public function getHoverBorderWidth()
239
-    {
240
-        return $this->hoverBorderWidth;
241
-    }
242
-
243
-    /**
244
-     * @param int $hoverBorderWidth
245
-     * @return Point
246
-     */
247
-    public function setHoverBorderWidth($hoverBorderWidth)
248
-    {
249
-        $this->hoverBorderWidth = intval($hoverBorderWidth);
250
-        return $this;
251
-    }
252
-
253
-    /**
254
-     * @return string
255
-     * @throws \ReflectionException
256
-     * @throws \Zend_Reflection_Exception
257
-     */
258
-    public function jsonSerialize()
259
-    {
260
-        return Json::encode($this->getArrayCopy());
261
-    }
15
+	use ArraySerializable;
16
+
17
+	const STYLE_CIRCLE = 'circle';
18
+	const STYLE_CROSS = 'cross';
19
+	const STYLE_CROSS_ROT = 'crossRot';
20
+	const STYLE_DASH = 'dash';
21
+	const STYLE_LINE = 'line';
22
+	const STYLE_RECT = 'rect';
23
+	const STYLE_RECT_ROUNDED = 'rectRounded';
24
+	const STYLE_RECT_ROT = 'rectRot';
25
+	const STYLE_RECT_STAR = 'star';
26
+	const STYLE_TRIANGLE = 'triangle';
27
+
28
+	/**
29
+	 * Point radius.
30
+	 * @default 3
31
+	 * @var int
32
+	 */
33
+	private $radius;
34
+
35
+	/**
36
+	 * Point style.
37
+	 * @default self::STYLE_CIRCLE
38
+	 * @var string
39
+	 */
40
+	private $pointStyle;
41
+
42
+	/**
43
+	 * Point rotation (in degrees).
44
+	 * @default 0
45
+	 * @var int
46
+	 */
47
+	private $rotation;
48
+
49
+	/**
50
+	 * Point fill color.
51
+	 * @default 'rgba(0,0,0,0.1)'
52
+	 * @var string
53
+	 */
54
+	private $backgroundColor;
55
+
56
+	/**
57
+	 * Point stroke width.
58
+	 * @default 1
59
+	 * @var int
60
+	 */
61
+	private $borderWidth;
62
+
63
+	/**
64
+	 * Point stroke color.
65
+	 * @default 'rgba(0,0,0,0.1)'
66
+	 * @var string
67
+	 */
68
+	private $borderColor;
69
+
70
+	/**
71
+	 * Extra radius added to point radius for hit detection.
72
+	 * @default 1
73
+	 * @var int
74
+	 */
75
+	private $hitRadius;
76
+
77
+	/**
78
+	 * Point radius when hovered.
79
+	 * @default 4
80
+	 * @var int
81
+	 */
82
+	private $hoverRadius;
83
+
84
+	/**
85
+	 * Stroke width when hovered.
86
+	 * @default 1
87
+	 * @var int
88
+	 */
89
+	private $hoverBorderWidth;
90
+
91
+	/**
92
+	 * @return int
93
+	 */
94
+	public function getRadius()
95
+	{
96
+		return $this->radius;
97
+	}
98
+
99
+	/**
100
+	 * @param int $radius
101
+	 * @return Point
102
+	 */
103
+	public function setRadius($radius)
104
+	{
105
+		$this->radius = intval($radius);
106
+		return $this;
107
+	}
108
+
109
+	/**
110
+	 * @return string
111
+	 */
112
+	public function getPointStyle()
113
+	{
114
+		return $this->pointStyle;
115
+	}
116
+
117
+	/**
118
+	 * @param string $pointStyle
119
+	 * @return Point
120
+	 */
121
+	public function setPointStyle($pointStyle)
122
+	{
123
+		$this->pointStyle = is_null($pointStyle) ? null : strval($pointStyle);
124
+		return $this;
125
+	}
126
+
127
+	/**
128
+	 * @return int
129
+	 */
130
+	public function getRotation()
131
+	{
132
+		return $this->rotation;
133
+	}
134
+
135
+	/**
136
+	 * @param int $rotation
137
+	 * @return Point
138
+	 */
139
+	public function setRotation($rotation)
140
+	{
141
+		$this->rotation = intval($rotation);
142
+		return $this;
143
+	}
144
+
145
+	/**
146
+	 * @return string
147
+	 */
148
+	public function getBackgroundColor()
149
+	{
150
+		return $this->backgroundColor;
151
+	}
152
+
153
+	/**
154
+	 * @param string $backgroundColor
155
+	 * @return Point
156
+	 */
157
+	public function setBackgroundColor($backgroundColor)
158
+	{
159
+		$this->backgroundColor = is_null($backgroundColor) ? null : strval($backgroundColor);
160
+		return $this;
161
+	}
162
+
163
+	/**
164
+	 * @return int
165
+	 */
166
+	public function getBorderWidth()
167
+	{
168
+		return $this->borderWidth;
169
+	}
170
+
171
+	/**
172
+	 * @param int $borderWidth
173
+	 * @return Point
174
+	 */
175
+	public function setBorderWidth($borderWidth)
176
+	{
177
+		$this->borderWidth = intval($borderWidth);
178
+		return $this;
179
+	}
180
+
181
+	/**
182
+	 * @return string
183
+	 */
184
+	public function getBorderColor()
185
+	{
186
+		return $this->borderColor;
187
+	}
188
+
189
+	/**
190
+	 * @param string $borderColor
191
+	 * @return Point
192
+	 */
193
+	public function setBorderColor($borderColor)
194
+	{
195
+		$this->borderColor = is_null($borderColor) ? null : strval($borderColor);
196
+		return $this;
197
+	}
198
+
199
+	/**
200
+	 * @return int
201
+	 */
202
+	public function getHitRadius()
203
+	{
204
+		return $this->hitRadius;
205
+	}
206
+
207
+	/**
208
+	 * @param int $hitRadius
209
+	 * @return Point
210
+	 */
211
+	public function setHitRadius($hitRadius)
212
+	{
213
+		$this->hitRadius = intval($hitRadius);
214
+		return $this;
215
+	}
216
+
217
+	/**
218
+	 * @return int
219
+	 */
220
+	public function getHoverRadius()
221
+	{
222
+		return $this->hoverRadius;
223
+	}
224
+
225
+	/**
226
+	 * @param int $hoverRadius
227
+	 * @return Point
228
+	 */
229
+	public function setHoverRadius($hoverRadius)
230
+	{
231
+		$this->hoverRadius = intval($hoverRadius);
232
+		return $this;
233
+	}
234
+
235
+	/**
236
+	 * @return int
237
+	 */
238
+	public function getHoverBorderWidth()
239
+	{
240
+		return $this->hoverBorderWidth;
241
+	}
242
+
243
+	/**
244
+	 * @param int $hoverBorderWidth
245
+	 * @return Point
246
+	 */
247
+	public function setHoverBorderWidth($hoverBorderWidth)
248
+	{
249
+		$this->hoverBorderWidth = intval($hoverBorderWidth);
250
+		return $this;
251
+	}
252
+
253
+	/**
254
+	 * @return string
255
+	 * @throws \ReflectionException
256
+	 * @throws \Zend_Reflection_Exception
257
+	 */
258
+	public function jsonSerialize()
259
+	{
260
+		return Json::encode($this->getArrayCopy());
261
+	}
262 262
 }
263 263
\ No newline at end of file
Please login to merge, or discard this patch.