DelegatingEntityConfigReader::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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