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
Pull Request — master (#1)
by Cees-Jan
03:29
created

Commit   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 57.14%

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A url() 0 4 1
A author() 0 4 1
A comitter() 0 4 1
A message() 0 4 1
A tree() 0 4 1
A commentCount() 0 4 1
A protectionUrl() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Git;
4
5
use ApiClients\Client\Github\Resource\Tree;
6
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
7
use ApiClients\Foundation\Hydrator\Annotations\Nested;
8
use ApiClients\Foundation\Resource\AbstractResource;
9
10
/**
11
 * @Nested(
12
 *     author="Git\User",
13
 *     comitter="Git\User",
14
 *     tree="Tree"
15
 * )
16
 * @EmptyResource("Git\EmptyCommit")
17
 */
18
abstract class Commit extends AbstractResource implements CommitInterface
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $url;
24
25
    /**
26
     * @var User
27
     */
28
    protected $author;
29
30
    /**
31
     * @var User
32
     */
33
    protected $comitter;
34
35
    /**
36
     * @var string
37
     */
38
    protected $message;
39
40
    /**
41
     * @var Tree
42
     */
43
    protected $tree;
44
45
    /**
46
     * @var int
47
     */
48
    protected $comment_count;
49
50
    /**
51
     * @var string
52
     */
53
    protected $protection_url;
54
55
    /**
56
     * @return string
57
     */
58 4
    public function url() : string
59
    {
60 4
        return $this->url;
61
    }
62
63
    /**
64
     * @return User
65
     */
66
    public function author() : User
67
    {
68
        return $this->author;
69
    }
70
71
    /**
72
     * @return User
73
     */
74
    public function comitter() : User
75
    {
76
        return $this->comitter;
77
    }
78
79
    /**
80
     * @return string
81
     */
82 4
    public function message() : string
83
    {
84 4
        return $this->message;
85
    }
86
87
    /**
88
     * @return Tree
89
     */
90
    public function tree() : Tree
91
    {
92
        return $this->tree;
93
    }
94
95
    /**
96
     * @return int
97
     */
98 4
    public function commentCount() : int
99
    {
100 4
        return $this->comment_count;
101
    }
102
103
    /**
104
     * @return string
105
     */
106 4
    public function protectionUrl() : string
107
    {
108 4
        return $this->protection_url;
109
    }
110
}
111