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.

Traits::getUniques14Day()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Audiens\AdobeClient\Entity;
4
5
use Audiens\AdobeClient\Exceptions\AuthException;
6
use Doctrine\Common\Cache\Cache;
7
use GuzzleHttp\ClientInterface;
8
9
/**
10
 * Class Traits
11
 */
12
class Traits
13
{
14
15
    use HydratableTrait;
16
17
    /** @var  int */
18
    protected $sid;
19
20
    /** @var  int */
21
    protected $pid;
22
23
    /** @var  string */
24
    protected $name;
25
26
    /** @var  string */
27
    protected $description;
28
29
    /** @var  string */
30
    protected $traitType;
31
32
    /** @var  string */
33
    protected $status;
34
35
    /** @var  int */
36
    protected $crUID;
37
38
    /** @var  int */
39
    protected $upUID;
40
41
    /** @var  string */
42
    protected $integrationCode;
43
44
    /** @var  int */
45
    protected $dataSourceId;
46
47
    /** @var  int */
48
    protected $folderId;
49
50
    /** @var  int */
51
    protected $count90Day;
52
53
    /** @var  int */
54
    protected $uniques90Day;
55
56
    /** @var  int */
57
    protected $uniques1Day;
58
59
    /** @var  int */
60
    protected $uniques14Day;
61
62
    /** @var  int */
63
    protected $uniques7Day;
64
65
    /** @var  int */
66
    protected $count14Day;
67
68
    /** @var  int */
69
    protected $count7Day;
70
71
    /** @var  int */
72
    protected $count30Day;
73
74
    /** @var  int */
75
    protected $uniques60Day;
76
77
    /** @var  int */
78
    protected $uniques30Day;
79
80
    /** @var  int */
81
    protected $count60Day;
82
83
    /** @var  int */
84
    protected $count1Day;
85
86
    /** @var  int */
87
    protected $countLifetime;
88
89
    /** @var  int */
90
    protected $uniquesLifetime;
91
92
    /** @var  \DateTime */
93
    protected $createTime;
94
95
    /** @var  \DateTime */
96
    protected $updateTime;
97
98
    /** @var  array() */
99
    protected $metrics = [];
100
101
102
    /**
103
     * @return int
104
     */
105
    public function getSid()
106
    {
107
        return $this->sid;
108
    }
109
110
    /**
111
     * @param int $sid
112
     */
113
    public function setSid($sid)
114
    {
115
        $this->sid = $sid;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getPid()
122
    {
123
        return $this->pid;
124
    }
125
126
    /**
127
     * @param int $pid
128
     */
129
    public function setPid($pid)
130
    {
131
        $this->pid = $pid;
132
    }
133
134
    /**
135
     * @return string
136
     */
137
    public function getName()
138
    {
139
        return $this->name;
140
    }
141
142
    /**
143
     * @param string $name
144
     */
145
    public function setName($name)
146
    {
147
        $this->name = $name;
148
    }
149
150
    /**
151
     * @return string
152
     */
153
    public function getDescription()
154
    {
155
        return $this->description;
156
    }
157
158
    /**
159
     * @param string $description
160
     */
161
    public function setDescription($description)
162
    {
163
        $this->description = $description;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getTraitType()
170
    {
171
        return $this->traitType;
172
    }
173
174
    /**
175
     * @param string $traitType
176
     */
177
    public function setTraitType($traitType)
178
    {
179
        $this->traitType = $traitType;
180
    }
181
182
    /**
183
     * @return string
184
     */
185
    public function getStatus()
186
    {
187
        return $this->status;
188
    }
189
190
    /**
191
     * @param string $status
192
     */
193
    public function setStatus($status)
194
    {
195
        $this->status = $status;
196
    }
197
198
    /**
199
     * @return int
200
     */
201
    public function getCrUid()
202
    {
203
        return $this->crUID;
204
    }
205
206
    /**
207
     * @param int $crUID
208
     */
209
    public function setCrUid($crUID)
210
    {
211
        $this->crUID = $crUID;
212
    }
213
214
    /**
215
     * @return int
216
     */
217
    public function getUpUid()
218
    {
219
        return $this->upUID;
220
    }
221
222
    /**
223
     * @param int $upUID
224
     */
225
    public function setUpUid($upUID)
226
    {
227
        $this->upUID = $upUID;
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getIntegrationCode()
234
    {
235
        return $this->integrationCode;
236
    }
237
238
    /**
239
     * @param string $integrationCode
240
     */
241
    public function setIntegrationCode($integrationCode)
242
    {
243
        $this->integrationCode = $integrationCode;
244
    }
245
246
    /**
247
     * @return int
248
     */
249
    public function getDataSourceId()
250
    {
251
        return $this->dataSourceId;
252
    }
253
254
    /**
255
     * @param int $dataSourceId
256
     */
257
    public function setDataSourceId($dataSourceId)
258
    {
259
        $this->dataSourceId = $dataSourceId;
260
    }
261
262
    /**
263
     * @return int
264
     */
265
    public function getFolderId()
266
    {
267
        return $this->folderId;
268
    }
269
270
    /**
271
     * @param int $folderId
272
     */
273
    public function setFolderId($folderId)
274
    {
275
        $this->folderId = $folderId;
276
    }
277
278
    /**
279
     * @return int
280
     */
281
    public function getCount90Day()
282
    {
283
        return $this->count90Day;
284
    }
285
286
    /**
287
     * @param int $count90Day
288
     */
289
    public function setCount90Day($count90Day)
290
    {
291
        $this->count90Day = $count90Day;
292
    }
293
294
    /**
295
     * @return int
296
     */
297
    public function getUniques90Day()
298
    {
299
        return $this->uniques90Day;
300
    }
301
302
    /**
303
     * @param int $uniques90Day
304
     */
305
    public function setUniques90Day($uniques90Day)
306
    {
307
        $this->uniques90Day = $uniques90Day;
308
    }
309
310
    /**
311
     * @return int
312
     */
313
    public function getUniques1Day()
314
    {
315
        return $this->uniques1Day;
316
    }
317
318
    /**
319
     * @param int $uniques1Day
320
     */
321
    public function setUniques1Day($uniques1Day)
322
    {
323
        $this->uniques1Day = $uniques1Day;
324
    }
325
326
    /**
327
     * @return int
328
     */
329
    public function getUniques14Day()
330
    {
331
        return $this->uniques14Day;
332
    }
333
334
    /**
335
     * @param int $uniques14Day
336
     */
337
    public function setUniques14Day($uniques14Day)
338
    {
339
        $this->uniques14Day = $uniques14Day;
340
    }
341
342
    /**
343
     * @return int
344
     */
345
    public function getUniques7Day()
346
    {
347
        return $this->uniques7Day;
348
    }
349
350
    /**
351
     * @param int $uniques7Day
352
     */
353
    public function setUniques7Day($uniques7Day)
354
    {
355
        $this->uniques7Day = $uniques7Day;
356
    }
357
358
    /**
359
     * @return int
360
     */
361
    public function getCount14Day()
362
    {
363
        return $this->count14Day;
364
    }
365
366
    /**
367
     * @param int $count14Day
368
     */
369
    public function setCount14Day($count14Day)
370
    {
371
        $this->count14Day = $count14Day;
372
    }
373
374
    /**
375
     * @return int
376
     */
377
    public function getCount7Day()
378
    {
379
        return $this->count7Day;
380
    }
381
382
    /**
383
     * @param int $count7Day
384
     */
385
    public function setCount7Day($count7Day)
386
    {
387
        $this->count7Day = $count7Day;
388
    }
389
390
    /**
391
     * @return int
392
     */
393
    public function getCount30Day()
394
    {
395
        return $this->count30Day;
396
    }
397
398
    /**
399
     * @param int $count30Day
400
     */
401
    public function setCount30Day($count30Day)
402
    {
403
        $this->count30Day = $count30Day;
404
    }
405
406
    /**
407
     * @return int
408
     */
409
    public function getUniques60Day()
410
    {
411
        return $this->uniques60Day;
412
    }
413
414
    /**
415
     * @param int $uniques60Day
416
     */
417
    public function setUniques60Day($uniques60Day)
418
    {
419
        $this->uniques60Day = $uniques60Day;
420
    }
421
422
    /**
423
     * @return int
424
     */
425
    public function getUniques30Day()
426
    {
427
        return $this->uniques30Day;
428
    }
429
430
    /**
431
     * @param int $uniques30Day
432
     */
433
    public function setUniques30Day($uniques30Day)
434
    {
435
        $this->uniques30Day = $uniques30Day;
436
    }
437
438
    /**
439
     * @return int
440
     */
441
    public function getCount60Day()
442
    {
443
        return $this->count60Day;
444
    }
445
446
    /**
447
     * @param int $count60Day
448
     */
449
    public function setCount60Day($count60Day)
450
    {
451
        $this->count60Day = $count60Day;
452
    }
453
454
    /**
455
     * @return int
456
     */
457
    public function getCount1Day()
458
    {
459
        return $this->count1Day;
460
    }
461
462
    /**
463
     * @param int $count1Day
464
     */
465
    public function setCount1Day($count1Day)
466
    {
467
        $this->count1Day = $count1Day;
468
    }
469
470
    /**
471
     * @return int
472
     */
473
    public function getCountLifetime()
474
    {
475
        return $this->countLifetime;
476
    }
477
478
    /**
479
     * @param int $countLifetime
480
     */
481
    public function setCountLifetime($countLifetime)
482
    {
483
        $this->countLifetime = $countLifetime;
484
    }
485
486
    /**
487
     * @return int
488
     */
489
    public function getUniquesLifetime()
490
    {
491
        return $this->uniquesLifetime;
492
    }
493
494
    /**
495
     * @param int $uniquesLifetime
496
     */
497
    public function setUniquesLifetime($uniquesLifetime)
498
    {
499
        $this->uniquesLifetime = $uniquesLifetime;
500
    }
501
502
    /**
503
     * @return \DateTime
504
     */
505
    public function getCreateTime()
506
    {
507
        return $this->createTime;
508
    }
509
510
    /**
511
     * @param \DateTime $createTime
512
     */
513
    public function setCreateTime(\DateTime $createTime)
514
    {
515
        $this->createTime = $createTime;
516
    }
517
518
    /**
519
     * @return \DateTime
520
     */
521
    public function getUpdateTime()
522
    {
523
        return $this->updateTime;
524
    }
525
526
    /**
527
     * @param \DateTime $updateTime
528
     */
529
    public function setUpdateTime(\DateTime $updateTime)
530
    {
531
        $this->updateTime = $updateTime;
532
    }
533
534
    /**
535
     * @return array
536
     */
537
    public function getMetrics()
538
    {
539
        return $this->metrics;
540
    }
541
542
    /**
543
     * @param array $metrics
544
     */
545
    public function setMetrics(array $metrics)
546
    {
547
        $this->metrics = $metrics;
548
    }
549
550
    public function addMetrics($metric)
551
    {
552
        $this->metrics[] = $metric;
553
    }
554
555
    public function toInsertArray()
556
    {
557
        $retunArray = [
558
            'pid' => $this->getPid(),
559
            'name' => $this->getName(),
560
            'description' => $this->getDescription(),
561
            'integrationCode' => $this->getIntegrationCode(),
562
            'traitType' => $this->getTraitType(),
563
            'status' => $this->getStatus(),
564
            'dataSourceId' => $this->getDataSourceId(),
565
            'folderId' => $this->getFolderId(),
566
            'crUID' => $this->getCrUid(),
567
            'upUID' => $this->getUpUid(),
568
            'createTime' => $this->getCreateTime(),
569
            'updateTime' => $this->getUpdateTime()
570
571
        ];
572
573
        return $retunArray;
574
    }
575
}
576