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

Deferred::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 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