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   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
wmc 7
lcom 1
cbo 1
dl 0
loc 93
ccs 6
cts 14
cp 0.4286
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A type() 0 4 1
A actor() 0 4 1
A repo() 0 4 1
A payload() 0 4 1
A public() 0 4 1
A createdAt() 0 4 1
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