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 (#14)
by Cees-Jan
04:02
created

CommunityHealth   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A healthPercentage() 0 4 1
A files() 0 4 1
A protected() 0 4 1
A updatedAt() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotations\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
use DateTimeInterface;
9
10
/**
11
 * @Nested(
12
 *     files="Repository\CommunityHealth\Files"
13
 * )
14
 * @EmptyResource("Repository\EmptyCommunityHealth")
15
 */
16
abstract class CommunityHealth extends AbstractResource implements CommunityHealthInterface
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $health_percentage;
22
23
    /**
24
     * @var Repository\CommunityHealth\Files
25
     */
26
    protected $files;
27
28
    /**
29
     * @var bool
30
     */
31
    protected $protected;
32
33
    /**
34
     * @var DateTimeInterface
35
     */
36
    protected $updated_at;
37
38
    /**
39
     * @return int
40
     */
41 4
    public function healthPercentage() : int
42
    {
43 4
        return $this->health_percentage;
44
    }
45
46
    /**
47
     * @return Repository\CommunityHealth\Files
48
     */
49
    public function files() : Repository\CommunityHealth\Files
50
    {
51
        return $this->files;
52
    }
53
54
    /**
55
     * @return bool
56
     */
57 4
    public function protected() : bool
58
    {
59 4
        return $this->protected;
60
    }
61
62
    /**
63
     * @return DateTimeInterface
64
     */
65
    public function updatedAt() : DateTimeInterface
66
    {
67
        return $this->updated_at;
68
    }
69
}
70