Passed
Push — master ( d9423e...3d42cd )
by Lukas
04:29
created

Deferred   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 22
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResourceClass() 0 3 1
A __construct() 0 4 1
A getId() 0 3 1
1
<?php
2
3
namespace Lneicelis\Transformer\ValueObject;
4
5
class Deferred
6
{
7
    /** @var string */
8
    private $resourceClass;
9
10
    /** @var string */
11
    private $id;
12
13 2
    public function __construct(string $resourceClass, string $id)
14
    {
15 2
        $this->resourceClass = $resourceClass;
16 2
        $this->id = $id;
17 2
    }
18
19 2
    public function getResourceClass(): string
20
    {
21 2
        return $this->resourceClass;
22
    }
23
24 2
    public function getId(): string
25
    {
26 2
        return $this->id;
27
    }
28
}
29