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

DelegatingEntityConfigReader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 60%

Importance

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

2 Methods

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