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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getRepository() 0 4 1
A getName() 0 4 1
A getColour() 0 4 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