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.

WebHook::events()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
cc 1
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotation\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
use DateTimeInterface;
9
10
/**
11
 * @Nested(
12
 *     config="WebHook\Config"
13
 * )
14
 * @EmptyResource("EmptyWebHook")
15
 */
16
abstract class WebHook extends AbstractResource implements WebHookInterface
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
23
    /**
24
     * @var string
25
     */
26
    protected $url;
27
28
    /**
29
     * @var string
30
     */
31
    protected $test_url;
32
33
    /**
34
     * @var string
35
     */
36
    protected $ping_url;
37
38
    /**
39
     * @var string
40
     */
41
    protected $name;
42
43
    /**
44
     * @var array
45
     */
46
    protected $events;
47
48
    /**
49
     * @var bool
50
     */
51
    protected $active;
52
53
    /**
54
     * @var WebHook\Config
55
     */
56
    protected $config;
57
58
    /**
59
     * @var DateTimeInterface
60
     */
61
    protected $created_at;
62
63
    /**
64
     * @var DateTimeInterface
65
     */
66
    protected $updated_at;
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 url(): string
80
    {
81 4
        return $this->url;
82
    }
83
84
    /**
85
     * @return string
86
     */
87 4
    public function testUrl(): string
88
    {
89 4
        return $this->test_url;
90
    }
91
92
    /**
93
     * @return string
94
     */
95 4
    public function pingUrl(): string
96
    {
97 4
        return $this->ping_url;
98
    }
99
100
    /**
101
     * @return string
102
     */
103 4
    public function name(): string
104
    {
105 4
        return $this->name;
106
    }
107
108
    /**
109
     * @return array
110
     */
111
    public function events(): array
112
    {
113
        return $this->events;
114
    }
115
116
    /**
117
     * @return bool
118
     */
119 4
    public function active(): bool
120
    {
121 4
        return $this->active;
122
    }
123
124
    /**
125
     * @return WebHook\Config
126
     */
127
    public function config(): WebHook\Config
128
    {
129
        return $this->config;
130
    }
131
132
    /**
133
     * @return DateTimeInterface
134
     */
135
    public function createdAt(): DateTimeInterface
136
    {
137
        return $this->created_at;
138
    }
139
140
    /**
141
     * @return DateTimeInterface
142
     */
143
    public function updatedAt(): DateTimeInterface
144
    {
145
        return $this->updated_at;
146
    }
147
}
148