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.

HydrateFQCNCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getClass() 0 4 1
A getJson() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Foundation\Hydrator\CommandBus\Command;
4
5
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
6
7
/**
8
 * @Handler("ApiClients\Foundation\Hydrator\CommandBus\Handler\HydrateFQCNHandler")
9
 */
10
final class HydrateFQCNCommand
11
{
12
    /**
13
     * @var string
14
     */
15
    private $class;
16
17
    /**
18
     * @var array
19
     */
20
    private $json;
21
22
    /**
23
     * HydrateCommand constructor.
24
     * @param string $class
25
     * @param array  $json
26
     */
27 2
    public function __construct(string $class, array $json)
28
    {
29 2
        $this->class = $class;
30 2
        $this->json = $json;
31 2
    }
32
33
    /**
34
     * @return string
35
     */
36 2
    public function getClass(): string
37
    {
38 2
        return $this->class;
39
    }
40
41
    /**
42
     * @return array
43
     */
44 2
    public function getJson(): array
45
    {
46 2
        return $this->json;
47
    }
48
}
49