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.

Cache   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 67
ccs 8
cts 10
cp 0.8
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A repositoryId() 0 4 1
A size() 0 4 1
A slug() 0 4 1
A branch() 0 4 1
A lastModified() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Travis\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
use DateTimeInterface;
8
9
/**
10
 * @EmptyResource("EmptyCache")
11
 */
12
abstract class Cache extends AbstractResource implements CacheInterface
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $repository_id;
18
19
    /**
20
     * @var int
21
     */
22
    protected $size;
23
24
    /**
25
     * @var string
26
     */
27
    protected $slug;
28
29
    /**
30
     * @var string
31
     */
32
    protected $branch;
33
34
    /**
35
     * @var DateTimeInterface
36
     */
37
    protected $last_modified;
38
39
    /**
40
     * @return int
41
     */
42 4
    public function repositoryId(): int
43
    {
44 4
        return $this->repository_id;
45
    }
46
47
    /**
48
     * @return int
49
     */
50 4
    public function size(): int
51
    {
52 4
        return $this->size;
53
    }
54
55
    /**
56
     * @return string
57
     */
58 4
    public function slug(): string
59
    {
60 4
        return $this->slug;
61
    }
62
63
    /**
64
     * @return string
65
     */
66 4
    public function branch(): string
67
    {
68 4
        return $this->branch;
69
    }
70
71
    /**
72
     * @return DateTimeInterface
73
     */
74
    public function lastModified(): DateTimeInterface
75
    {
76
        return $this->last_modified;
77
    }
78
}
79