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.

Title::setFontColor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Options;
4
5
use Halfpastfour\PHPChartJS\ArraySerializableInterface;
6
use Halfpastfour\PHPChartJS\Delegate\ArraySerializable;
7
use JsonSerializable;
8
9
/**
10
 * Class LineOptions
11
 *
12
 * @package Halfpastfour\PHPChartJS\Options
13
 */
14
class Title implements ArraySerializableInterface, JsonSerializable
15
{
16
    use ArraySerializable;
17
18
    /**
19
     * @var bool
20
     */
21
    private $display;
22
23
    /**
24
     * @var string
25
     */
26
    private $position;
27
28
    /**
29
     * @var bool
30
     */
31
    private $fullWidth;
32
33
    /**
34
     * @var int
35
     */
36
    private $fontSize;
37
38
    /**
39
     * @var string
40
     */
41
    private $fontFamily;
42
43
    /**
44
     * @var string
45
     */
46
    private $fontColor;
47
48
    /**
49
     * @var string
50
     */
51
    private $fontStyle;
52
53
    /**
54
     * @var int
55
     */
56
    private $padding;
57
58
    /**
59
     * @var string
60
     */
61
    private $text;
62
63
    /**
64
     * @return bool
65
     */
66
    public function isDisplay()
67
    {
68
        return $this->display;
69
    }
70
71
    /**
72
     * @param bool $display
73
     *
74
     * @return $this
75
     */
76
    public function setDisplay($display)
77
    {
78
        $this->display = boolval($display);
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getPosition()
87
    {
88
        return $this->position;
89
    }
90
91
    /**
92
     * @param string $position
93
     *
94
     * @return $this
95
     */
96
    public function setPosition($position)
97
    {
98
        $this->position = strval($position);
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return bool
105
     */
106
    public function isFullWidth()
107
    {
108
        return $this->fullWidth;
109
    }
110
111
    /**
112
     * @param bool $fullWidth
113
     *
114
     * @return $this
115
     */
116
    public function setFullWidth($fullWidth)
117
    {
118
        $this->fullWidth = boolval($fullWidth);
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return int
125
     */
126
    public function getFontSize()
127
    {
128
        return $this->fontSize;
129
    }
130
131
    /**
132
     * @param int $fontSize
133
     *
134
     * @return $this
135
     */
136
    public function setFontSize($fontSize)
137
    {
138
        $this->fontSize = intval($fontSize);
139
140
        return $this;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getFontFamily()
147
    {
148
        return $this->fontFamily;
149
    }
150
151
    /**
152
     * @param string $fontFamily
153
     *
154
     * @return $this
155
     */
156
    public function setFontFamily($fontFamily)
157
    {
158
        $this->fontFamily = strval($fontFamily);
159
160
        return $this;
161
    }
162
163
    /**
164
     * @return string
165
     */
166
    public function getFontColor()
167
    {
168
        return $this->fontColor;
169
    }
170
171
    /**
172
     * @param string $fontColor
173
     *
174
     * @return $this
175
     */
176
    public function setFontColor($fontColor)
177
    {
178
        $this->fontColor = strval($fontColor);
179
180
        return $this;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getFontStyle()
187
    {
188
        return $this->fontStyle;
189
    }
190
191
    /**
192
     * @param string $fontStyle
193
     *
194
     * @return $this
195
     */
196
    public function setFontStyle($fontStyle)
197
    {
198
        $this->fontStyle = strval($fontStyle);
199
200
        return $this;
201
    }
202
203
    /**
204
     * @return int
205
     */
206
    public function getPadding()
207
    {
208
        return $this->padding;
209
    }
210
211
    /**
212
     * @param int $padding
213
     *
214
     * @return $this
215
     */
216
    public function setPadding($padding)
217
    {
218
        $this->padding = intval($padding);
219
220
        return $this;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getText()
227
    {
228
        return $this->text;
229
    }
230
231
    /**
232
     * @param string $text
233
     *
234
     * @return $this
235
     */
236
    public function setText($text)
237
    {
238
        $this->text = strval($text);
239
240
        return $this;
241
    }
242
243
    /**
244
     * @return array
245
     */
246
    public function jsonSerialize()
247
    {
248
        return $this->getArrayCopy();
249
    }
250
}
251