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
Push — master ( 013e7d...6355e3 )
by Cees-Jan
25s queued 11s
created

Compare::status()   A

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 declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository;
4
5
use ApiClients\Foundation\Hydrator\Annotation\Collection;
6
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
7
use ApiClients\Foundation\Hydrator\Annotation\Nested;
8
use ApiClients\Foundation\Resource\AbstractResource;
9
10
/**
11
 * @Collection(
12
 *     commits="Repository\Commit",
13
 *     files="Repository\Commit\File"
14
 * )
15
 * @Nested(
16
 *     base_commit="Repository\Commit",
17
 *     merge_base_commit="Repository\Commit"
18
 * )
19
 * @EmptyResource("Repository\EmptyCompare")
20
 */
21
abstract class Compare extends AbstractResource implements CompareInterface
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $url;
27
28
    /**
29
     * @var Repository\Commit
30
     */
31
    protected $base_commit;
32
33
    /**
34
     * @var Repository\Commit
35
     */
36
    protected $merge_base_commit;
37
38
    /**
39
     * @var string
40
     */
41
    protected $status;
42
43
    /**
44
     * @var int
45
     */
46
    protected $ahead_by;
47
48
    /**
49
     * @var int
50
     */
51
    protected $behind_by;
52
53
    /**
54
     * @var int
55
     */
56
    protected $total_commits;
57
58
    /**
59
     * @var Repository\Commit
60
     */
61
    protected $commits;
62
63
    /**
64
     * @var Repository\Commit\File
65
     */
66
    protected $files;
67
68
    /**
69
     * @return string
70
     */
71
    public function url(): string
72
    {
73
        return $this->url;
74
    }
75
76
    /**
77
     * @return Repository\Commit
78
     */
79
    public function baseCommit(): Repository\Commit
80
    {
81
        return $this->base_commit;
82
    }
83
84
    /**
85
     * @return Repository\Commit
86
     */
87
    public function mergeBaseCommit(): Repository\Commit
88
    {
89
        return $this->merge_base_commit;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function status(): string
96
    {
97
        return $this->status;
98
    }
99
100
    /**
101
     * @return int
102
     */
103
    public function aheadBy(): int
104
    {
105
        return $this->ahead_by;
106
    }
107
108
    /**
109
     * @return int
110
     */
111
    public function behindBy(): int
112
    {
113
        return $this->behind_by;
114
    }
115
116
    /**
117
     * @return int
118
     */
119
    public function totalCommits(): int
120
    {
121
        return $this->total_commits;
122
    }
123
124
    /**
125
     * @return Repository\Commit
126
     */
127
    public function commits(): Repository\Commit
128
    {
129
        return $this->commits;
130
    }
131
132
    /**
133
     * @return Repository\Commit\File
134
     */
135
    public function files(): Repository\Commit\File
136
    {
137
        return $this->files;
138
    }
139
}
140