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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 69
ccs 0
cts 20
cp 0
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
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