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 ( 4ea21f...4cdb12 )
by Cees-Jan
04:20
created

Organization::hooksUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
8
/**
9
 * @EmptyResource("EmptyOrganization")
10
 */
11
abstract class Organization extends AbstractResource implements OrganizationInterface
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $login;
22
23
    /**
24
     * @var string
25
     */
26
    protected $url;
27
28
    /**
29
     * @var string
30
     */
31
    protected $repos_url;
32
33
    /**
34
     * @var string
35
     */
36
    protected $events_url;
37
38
    /**
39
     * @var string
40
     */
41
    protected $hooks_url;
42
43
    /**
44
     * @var string
45
     */
46
    protected $issues_url;
47
48
    /**
49
     * @var string
50
     */
51
    protected $members_url;
52
53
    /**
54
     * @var string
55
     */
56
    protected $public_members_url;
57
58
    /**
59
     * @var string
60
     */
61
    protected $avatar_url;
62
63
    /**
64
     * @var string
65
     */
66
    protected $description;
67
68
    /**
69
     * @return int
70
     */
71 4
    public function id() : int
72
    {
73 4
        return $this->id;
74
    }
75
76
    /**
77
     * @return string
78
     */
79 4
    public function login() : string
80
    {
81 4
        return $this->login;
82
    }
83
84
    /**
85
     * @return string
86
     */
87 4
    public function url() : string
88
    {
89 4
        return $this->url;
90
    }
91
92
    /**
93
     * @return string
94
     */
95 4
    public function reposUrl() : string
96
    {
97 4
        return $this->repos_url;
98
    }
99
100
    /**
101
     * @return string
102
     */
103 4
    public function eventsUrl() : string
104
    {
105 4
        return $this->events_url;
106
    }
107
108
    /**
109
     * @return string
110
     */
111 4
    public function hooksUrl() : string
112
    {
113 4
        return $this->hooks_url;
114
    }
115
116
    /**
117
     * @return string
118
     */
119 4
    public function issuesUrl() : string
120
    {
121 4
        return $this->issues_url;
122
    }
123
124
    /**
125
     * @return string
126
     */
127 4
    public function membersUrl() : string
128
    {
129 4
        return $this->members_url;
130
    }
131
132
    /**
133
     * @return string
134
     */
135 4
    public function publicMembersUrl() : string
136
    {
137 4
        return $this->public_members_url;
138
    }
139
140
    /**
141
     * @return string
142
     */
143 4
    public function avatarUrl() : string
144
    {
145 4
        return $this->avatar_url;
146
    }
147
148
    /**
149
     * @return string
150
     */
151 4
    public function description() : string
152
    {
153 4
        return (string)$this->description;
154
    }
155
}
156