ConfigOptions   A
last analyzed

Complexity

Total Complexity 30

Size/Duplication

Total Lines 288
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 30
eloc 46
c 0
b 0
f 0
dl 0
loc 288
rs 10

30 Methods

Rating   Name   Duplication   Size   Complexity  
A setJwtTable() 0 3 1
A getIsJwtAction() 0 3 1
A getQueryPage() 0 3 1
A setSpellCheck() 0 3 1
A setQueryPage() 0 3 1
A getCacheTtl() 0 3 1
A setIsXFetch() 0 3 1
A getCalledMethod() 0 3 1
A isXFetch() 0 3 1
A setQueryLimit() 0 3 1
A setQueryAccessToken() 0 3 1
A setIsCached() 0 3 1
A isCached() 0 3 1
A getCacheBeta() 0 3 1
A isBitMask() 0 3 1
A setJwtIsEnabled() 0 3 1
A isSpellCheck() 0 3 1
A getQueryLimit() 0 3 1
A setIsJwtAction() 0 3 1
A getQuerySort() 0 3 1
A isStateMachine() 0 3 1
A getJwtTable() 0 3 1
A setQuerySort() 0 3 1
A setCalledMethod() 0 3 1
A setCacheBeta() 0 3 1
A setBitMask() 0 3 1
A setCacheTtl() 0 3 1
A getQueryAccessToken() 0 3 1
A getJwtIsEnabled() 0 3 1
A setStateMachine() 0 3 1
1
<?php
2
namespace SoliDry\Helpers;
3
4
/**
5
 * Class ConfigOptions
6
 * @package SoliDry\Helpers
7
 */
8
class ConfigOptions
9
{
10
    /**
11
     * @var string
12
     */
13
    private string $calledMethod = '';
14
15
    // query params
16
    private $queryLimit;
17
    private $querySort;
18
    private $queryPage;
19
    private $queryAccessToken;
20
    // jwt
21
    private $jwtIsEnabled;
22
    private $jwtTable;
23
    private $isJwtAction;
24
    // state machine
25
    /**
26
     * @var bool
27
     */
28
    private bool $isStateMachine = false;
29
    // spell check
30
    /**
31
     * @var bool
32
     */
33
    private bool $spellCheck = false;
34
    // bit mask
35
    /**
36
     * @var bool
37
     */
38
    private bool $isBitWise = false;
39
40
    // cache settings
41
    /**
42
     * @var bool
43
     */
44
    private bool $isCached = false;
45
46
    /**
47
     * @var bool
48
     */
49
    private bool $isXFetch = false;
50
51
    /**
52
     * @var float
53
     */
54
    private float $cacheBeta = 1.0;
55
56
    /**
57
     * @var int
58
     */
59
    private int $cacheTtl = 0;
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getQueryLimit()
65
    {
66
        return $this->queryLimit;
67
    }
68
69
    /**
70
     * @param mixed $queryLimit
71
     */
72
    public function setQueryLimit($queryLimit)
73
    {
74
        $this->queryLimit = $queryLimit;
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getQuerySort()
81
    {
82
        return $this->querySort;
83
    }
84
85
    /**
86
     * @param mixed $querySort
87
     */
88
    public function setQuerySort($querySort)
89
    {
90
        $this->querySort = $querySort;
91
    }
92
93
    /**
94
     * @return mixed
95
     */
96
    public function getQueryPage()
97
    {
98
        return $this->queryPage;
99
    }
100
101
    /**
102
     * @param mixed $queryPage
103
     */
104
    public function setQueryPage($queryPage)
105
    {
106
        $this->queryPage = $queryPage;
107
    }
108
109
    /**
110
     * @return mixed
111
     */
112
    public function getQueryAccessToken()
113
    {
114
        return $this->queryAccessToken;
115
    }
116
117
    /**
118
     * @param mixed $queryAccessToken
119
     */
120
    public function setQueryAccessToken($queryAccessToken)
121
    {
122
        $this->queryAccessToken = $queryAccessToken;
123
    }
124
125
    /**
126
     * @return mixed
127
     */
128
    public function getJwtIsEnabled()
129
    {
130
        return $this->jwtIsEnabled;
131
    }
132
133
    /**
134
     * @param mixed $jwtIsEnabled
135
     */
136
    public function setJwtIsEnabled($jwtIsEnabled)
137
    {
138
        $this->jwtIsEnabled = $jwtIsEnabled;
139
    }
140
141
    /**
142
     * @return mixed
143
     */
144
    public function getJwtTable()
145
    {
146
        return $this->jwtTable;
147
    }
148
149
    /**
150
     * @param mixed $jwtTable
151
     */
152
    public function setJwtTable($jwtTable)
153
    {
154
        $this->jwtTable = $jwtTable;
155
    }
156
157
    /**
158
     * @return bool
159
     */
160
    public function getIsJwtAction()
161
    {
162
        return $this->isJwtAction;
163
    }
164
165
    /**
166
     * @param bool $isJwtAction
167
     */
168
    public function setIsJwtAction(bool $isJwtAction)
169
    {
170
        $this->isJwtAction = $isJwtAction;
171
    }
172
173
    /**
174
     * @param bool $isStateMachine
175
     */
176
    public function setStateMachine(bool $isStateMachine)
177
    {
178
        $this->isStateMachine = $isStateMachine;
179
    }
180
181
    /**
182
     * @return bool
183
     */
184
    public function isStateMachine() : bool
185
    {
186
        return $this->isStateMachine;
187
    }
188
189
    /**
190
     * @return boolean
191
     */
192
    public function isSpellCheck() : bool
193
    {
194
        return $this->spellCheck;
195
    }
196
197
    /**
198
     * @param boolean $spellCheck
199
     */
200
    public function setSpellCheck($spellCheck) : void
201
    {
202
        $this->spellCheck = $spellCheck;
203
    }
204
205
    /**
206
     * @param bool $isBitwise
207
     */
208
    public function setBitMask($isBitwise) : void
209
    {
210
        $this->isBitWise = $isBitwise;
211
    }
212
213
    public function isBitMask() : bool
214
    {
215
        return $this->isBitWise;
216
    }
217
218
    /**
219
     * @return bool
220
     */
221
    public function isCached() : bool
222
    {
223
        return $this->isCached;
224
    }
225
226
    /**
227
     * @param bool $isCached
228
     */
229
    public function setIsCached(bool $isCached) : void
230
    {
231
        $this->isCached = $isCached;
232
    }
233
234
    /**
235
     * @return bool
236
     */
237
    public function isXFetch() : bool
238
    {
239
        return $this->isXFetch;
240
    }
241
242
    /**
243
     * @param bool $isXFetch
244
     */
245
    public function setIsXFetch(bool $isXFetch) : void
246
    {
247
        $this->isXFetch = $isXFetch;
248
    }
249
250
    /**
251
     * @return int
252
     */
253
    public function getCacheTtl() : int
254
    {
255
        return $this->cacheTtl;
256
    }
257
258
    /**
259
     * @param int $cacheTtl
260
     */
261
    public function setCacheTtl(int $cacheTtl) : void
262
    {
263
        $this->cacheTtl = $cacheTtl;
264
    }
265
266
    /**
267
     * @return float
268
     */
269
    public function getCacheBeta() : float
270
    {
271
        return $this->cacheBeta;
272
    }
273
274
    /**
275
     * @param float $cacheBeta
276
     */
277
    public function setCacheBeta(float $cacheBeta) : void
278
    {
279
        $this->cacheBeta = $cacheBeta;
280
    }
281
282
    /**
283
     * @return string
284
     */
285
    public function getCalledMethod(): string
286
    {
287
        return $this->calledMethod;
288
    }
289
290
    /**
291
     * @param string $calledMethod
292
     */
293
    public function setCalledMethod(string $calledMethod)
294
    {
295
        $this->calledMethod = $calledMethod;
296
    }
297
}