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.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.