Completed
Pull Request — master (#1)
by Karsten
03:23
created

DelegatingEntityConfigReader::__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
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * File was created 11.02.2016 17:41
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Core\LookUp;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class DelegatingEntityConfigReader implements EntityConfigReader
12
{
13
    /** @var EntityConfigReader */
14
    protected $delegate;
15
16
    /**
17
     * DelegatingEntityConfigLookUp constructor.
18
     *
19
     * @param EntityConfigReader $delegate
20
     */
21 1
    public function __construct(EntityConfigReader $delegate)
22
    {
23 1
        $this->delegate = $delegate;
24 1
    }
25
26
    /**
27
     * @param \ReflectionClass $subject
28
     *
29
     * @return EntityConfig
30
     */
31
    public function getEntityConfig(\ReflectionClass $subject)
32
    {
33
        return $this->delegate->getEntityConfig($subject);
34
    }
35
}
36