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.

Branch   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 54
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 4 1
A commit() 0 4 1
A protected() 0 4 1
A protectionUrl() 0 4 1
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\Annotation\EmptyResource;
8
use ApiClients\Foundation\Hydrator\Annotation\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 4
    public function name(): string
43
    {
44 4
        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 4
    public function protected(): bool
59
    {
60 4
        return $this->protected;
61
    }
62
63
    /**
64
     * @return string
65
     */
66 4
    public function protectionUrl(): string
67
    {
68 4
        return $this->protection_url;
69
    }
70
}
71