Deferred   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProperty() 0 3 1
A getResource() 0 3 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