Deferred::getProperty()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Lneicelis\Transformer\ValueObject;
4
5
class Deferred
6
{
7
    /** @var object */
8
    private $resource;
9
10
    /** @var string */
11
    private $property;
12
13 2
    public function __construct($resource, string $property)
14
    {
15 2
        $this->resource = $resource;
16 2
        $this->property = $property;
17 2
    }
18
19
    /**
20
     * @return object
21
     */
22 2
    public function getResource()
23
    {
24 2
        return $this->resource;
25
    }
26
27
    /**
28
     * @return string
29
     */
30 2
    public function getProperty(): string
31
    {
32 2
        return $this->property;
33
    }
34
}
35