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 ( 0d08ce...5e5f9f )
by Cees-Jan
05:15
created

AddLabelCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\CommandBus\Command\Repository;
4
5
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
6
7
/**
8
 * @Handler("ApiClients\Client\Github\CommandBus\Handler\Repository\AddLabelHandler")
9
 */
10
final class AddLabelCommand
11
{
12
    /**
13
     * @var string
14
     */
15
    private $repository;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * @var string
24
     */
25
    private $colour;
26
27
    /**
28
     * @param string $repository
29
     * @param string $name
30
     * @param string $colour
31
     */
32 1
    public function __construct(string $repository, string $name, string $colour)
33
    {
34 1
        $this->repository = $repository;
35 1
        $this->name = $name;
36 1
        $this->colour = $colour;
37 1
    }
38
39
    /**
40
     * @return string
41
     */
42 1
    public function getRepository(): string
43
    {
44 1
        return $this->repository;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getName(): string
51
    {
52 1
        return $this->name;
53
    }
54
55
    /**
56
     * @return string
57
     */
58 1
    public function getColour(): string
59
    {
60 1
        return $this->colour;
61
    }
62
}
63