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

SaveCommand::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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