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   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 getHydrateClass() 0 4 1
A getData() 0 4 1
A getUrl() 0 4 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