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.

Tag   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 zipballUrl() 0 4 1
A tarballUrl() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotation\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
9
/**
10
 * @Nested(
11
 *     commit="Tree"
12
 * )
13
 * @EmptyResource("Repository\EmptyTag")
14
 */
15
abstract class Tag extends AbstractResource implements TagInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $name;
21
22
    /**
23
     * @var Tree
24
     */
25
    protected $commit;
26
27
    /**
28
     * @var string
29
     */
30
    protected $zipball_url;
31
32
    /**
33
     * @var string
34
     */
35
    protected $tarball_url;
36
37
    /**
38
     * @return string
39
     */
40 4
    public function name(): string
41
    {
42 4
        return $this->name;
43
    }
44
45
    /**
46
     * @return Tree
47
     */
48
    public function commit(): Tree
49
    {
50
        return $this->commit;
51
    }
52
53
    /**
54
     * @return string
55
     */
56 4
    public function zipballUrl(): string
57
    {
58 4
        return $this->zipball_url;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 4
    public function tarballUrl(): string
65
    {
66 4
        return $this->tarball_url;
67
    }
68
}
69