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 ( a7befa...3e14ee )
by Cees-Jan
10:18
created

Branch::commit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository;
4
5
use ApiClients\Client\Github\Resource\Tree;
6
use ApiClients\Client\Github\Resource\TreeInterface;
7
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
8
use ApiClients\Foundation\Hydrator\Annotations\Nested;
9
use ApiClients\Foundation\Resource\AbstractResource;
10
11
/**
12
 * @Nested(
13
 *     commit="Tree"
14
 * )
15
 * @EmptyResource("Repository\EmptyBranch")
16
 */
17
abstract class Branch extends AbstractResource implements BranchInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var TreeInterface
26
     */
27
    protected $commit;
28
29
    /**
30
     * @var bool
31
     */
32
    protected $protected;
33
34
    /**
35
     * @var string
36
     */
37
    protected $protection_url;
38
39
    /**
40
     * @return string
41
     */
42
    public function name() : string
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @return TreeInterface
49
     */
50
    public function commit() : TreeInterface
51
    {
52
        return $this->commit;
53
    }
54
55
    /**
56
     * @return bool
57
     */
58
    public function protected() : bool
59
    {
60
        return $this->protected;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function protectionUrl() : string
67
    {
68
        return $this->protection_url;
69
    }
70
}
71