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.

Event::payload()   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
 *     actor="User",
13
 *     repo="RepositorySimple"
14
 * )
15
 * @EmptyResource("EmptyEvent")
16
 */
17
abstract class Event extends AbstractResource implements EventInterface
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $id;
23
24
    /**
25
     * @var string
26
     */
27
    protected $type;
28
29
    /**
30
     * @var User
31
     */
32
    protected $actor;
33
34
    /**
35
     * @var RepositorySimple
36
     */
37
    protected $repo;
38
39
    /**
40
     * @var array
41
     */
42
    protected $payload;
43
44
    /**
45
     * @var bool
46
     */
47
    protected $public;
48
49
    /**
50
     * @var DateTimeInterface
51
     */
52
    protected $created_at;
53
54
    /**
55
     * @return int
56
     */
57 4
    public function id(): int
58
    {
59 4
        return (int)$this->id;
60
    }
61
62
    /**
63
     * @return string
64
     */
65 4
    public function type(): string
66
    {
67 4
        return $this->type;
68
    }
69
70
    /**
71
     * @return User
72
     */
73
    public function actor(): User
74
    {
75
        return $this->actor;
76
    }
77
78
    /**
79
     * @return RepositorySimple
80
     */
81
    public function repo(): RepositorySimple
82
    {
83
        return $this->repo;
84
    }
85
86
    /**
87
     * @return array
88
     */
89
    public function payload(): array
90
    {
91
        return $this->payload;
92
    }
93
94
    /**
95
     * @return bool
96
     */
97 4
    public function public(): bool
98
    {
99 4
        return $this->public;
100
    }
101
102
    /**
103
     * @return DateTimeInterface
104
     */
105
    public function createdAt(): DateTimeInterface
106
    {
107
        return $this->created_at;
108
    }
109
}
110