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
07:04
created

CommunityHealth::protected()   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\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
    public function healthPercentage() : int
42
    {
43
        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
    public function protected() : bool
58
    {
59
        return $this->protected;
60
    }
61
62
    /**
63
     * @return DateTimeInterface
64
     */
65
    public function updatedAt() : DateTimeInterface
66
    {
67
        return $this->updated_at;
68
    }
69
}
70