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.

BuildAsyncFromSyncCommand   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 getResource() 0 4 1
A getObject() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Foundation\Hydrator\CommandBus\Command;
4
5
use ApiClients\Foundation\Resource\ResourceInterface;
6
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
7
8
/**
9
 * @Handler("ApiClients\Foundation\Hydrator\CommandBus\Handler\BuildAsyncFromSyncHandler")
10
 */
11
class BuildAsyncFromSyncCommand
12
{
13
    /**
14
     * @var string
15
     */
16
    private $resource;
17
18
    /**
19
     * @var ResourceInterface
20
     */
21
    private $object;
22
23
    /**
24
     * ExtractCommand constructor.
25
     * @param string            $resource
26
     * @param ResourceInterface $object
27
     */
28 2
    public function __construct(string $resource, ResourceInterface $object)
29
    {
30 2
        $this->resource = $resource;
31 2
        $this->object = $object;
32 2
    }
33
34
    /**
35
     * @return string
36
     */
37 2
    public function getResource(): string
38
    {
39 2
        return $this->resource;
40
    }
41
42
    /**
43
     * @return ResourceInterface
44
     */
45 2
    public function getObject(): ResourceInterface
46
    {
47 2
        return $this->object;
48
    }
49
}
50