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.
Completed
Pull Request — master (#33)
by Cees-Jan
13:22 queued 11:17
created

Cache::lastModified()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
7
8
abstract class Cache implements CacheInterface
9
{
10
    use TransportAwareTrait;
11
12
    /**
13
     * @var int
14
     */
15
    protected $repository_id;
16
17
    /**
18
     * @var int
19
     */
20
    protected $size;
21
22
    /**
23
     * @var string
24
     */
25
    protected $slug;
26
27
    /**
28
     * @var string
29
     */
30
    protected $branch;
31
32
    /**
33
     * @var DateTimeInterface
34
     */
35
    protected $last_modified;
36
37
    /**
38
     * @return int
39
     */
40
    public function repositoryId() : int
41
    {
42
        return $this->repository_id;
43
    }
44
45
    /**
46
     * @return int
47
     */
48
    public function size() : int
49
    {
50
        return $this->size;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function slug() : string
57
    {
58
        return $this->slug;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function branch() : string
65
    {
66
        return $this->branch;
67
    }
68
69
    /**
70
     * @return DateTimeInterface
71
     */
72
    public function lastModified() : DateTimeInterface
73
    {
74
        return $this->last_modified;
75
    }
76
}
77