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.

GlobalConfig::tooltips()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 7
rs 10
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\ConfigDefaults;
4
5
/**
6
 * Class GlobalConfig
7
 * @package Halfpastfour\PHPChartJS\ConfigDefaults
8
 */
9
class GlobalConfig
10
{
11
    /**
12
     * @var GlobalConfig
13
     */
14
    private static $instance;
15
16
    /**
17
     * @var string
18
     */
19
    private $defaultFontColor;
20
21
    /**
22
     * @var string
23
     */
24
    private $defaultFontFamily;
25
26
    /**
27
     * @var int
28
     */
29
    private $defaultFontSize;
30
31
    /**
32
     * @var string
33
     */
34
    private $defaultFontStyle;
35
36
    /**
37
     * @var LayoutConfig
38
     */
39
    private $layout;
40
41
    /**
42
     * @var TooltipsConfig
43
     */
44
    private $tooltips;
45
46
    /**
47
     * @var HoverConfig
48
     */
49
    private $hover;
50
51
    /**
52
     * @var AnimationConfig
53
     */
54
    private $animation;
55
56
    /**
57
     * @var ElementsConfig
58
     */
59
    private $elements;
60
61
    /**
62
     * GlobalConfig constructor.
63
     */
64
    private function __construct()
65
    {
66
    }
67
68
    /**
69
     * @return $this
70
     */
71
    public static function getInstance()
72
    {
73
        if (is_null(self::$instance)) {
74
            self::$instance = new self;
75
        }
76
77
        return self::$instance;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getDefaultFontColor()
84
    {
85
        return $this->defaultFontColor;
86
    }
87
88
    /**
89
     * @param string $defaultFontColor
90
     *
91
     * @return $this
92
     */
93
    public function setDefaultFontColor($defaultFontColor)
94
    {
95
        $this->defaultFontColor = strval($defaultFontColor);
96
97
        return $this;
98
    }
99
100
    /**
101
     * @return string
102
     */
103
    public function getDefaultFontFamily()
104
    {
105
        return $this->defaultFontFamily;
106
    }
107
108
    /**
109
     * @param string $defaultFontFamily
110
     *
111
     * @return $this
112
     */
113
    public function setDefaultFontFamily($defaultFontFamily)
114
    {
115
        $this->defaultFontFamily = strval($defaultFontFamily);
116
117
        return $this;
118
    }
119
120
    /**
121
     * @return int
122
     */
123
    public function getDefaultFontSize()
124
    {
125
        return $this->defaultFontSize;
126
    }
127
128
    /**
129
     * @param int $defaultFontSize
130
     *
131
     * @return $this
132
     */
133
    public function setDefaultFontSize($defaultFontSize)
134
    {
135
        $this->defaultFontSize = intval($defaultFontSize);
136
137
        return $this;
138
    }
139
140
    /**
141
     * @return string
142
     */
143
    public function getDefaultFontStyle()
144
    {
145
        return $this->defaultFontStyle;
146
    }
147
148
    /**
149
     * @param string $defaultFontStyle
150
     *
151
     * @return $this
152
     */
153
    public function setDefaultFontStyle($defaultFontStyle)
154
    {
155
        $this->defaultFontStyle = $defaultFontStyle;
156
157
        return $this;
158
    }
159
160
    /**
161
     * @return LayoutConfig
162
     */
163
    public function layout()
164
    {
165
        if (is_null($this->layout)) {
166
            $this->layout = new LayoutConfig();
167
        }
168
169
        return $this->layout;
170
    }
171
172
    /**
173
     * @return TooltipsConfig
174
     */
175
    public function tooltips()
176
    {
177
        if (is_null($this->tooltips)) {
178
            $this->tooltips = new TooltipsConfig();
179
        }
180
181
        return $this->tooltips;
182
    }
183
184
    /**
185
     * @return HoverConfig
186
     */
187
    public function hover()
188
    {
189
        if (is_null($this->hover)) {
190
            $this->hover = new HoverConfig();
191
        }
192
193
        return $this->hover;
194
    }
195
196
    /**
197
     * @return AnimationConfig
198
     */
199
    public function animation()
200
    {
201
        if (is_null($this->animation)) {
202
            $this->animation = new AnimationConfig();
203
        }
204
205
        return $this->animation;
206
    }
207
208
    /**
209
     * @return ElementsConfig
210
     */
211
    public function elements()
212
    {
213
        if (is_null($this->elements)) {
214
            $this->elements = new ElementsConfig();
215
        }
216
217
        return $this->elements;
218
    }
219
}
220