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::branch()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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