Completed
Push — master ( af7add...6e606c )
by Karsten
02:11
created

DelegatingEntityConfigReader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 25
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntityConfig() 0 4 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
 * @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