ConnectionConfiguration   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A map() 0 4 1
1
<?php namespace Nord\Lumen\Doctrine\ORM\Configuration;
2
3
use Nord\Lumen\Doctrine\ORM\Contracts\ConfigurationAdapter;
4
5
class ConnectionConfiguration
6
{
7
8
    /**
9
     * @var ConfigurationAdapter
10
     */
11
    private $adapter;
12
13
14
    /**
15
     * ConnectionConfiguration constructor.
16
     *
17
     * @param ConfigurationAdapter $adapter
18
     */
19
    public function __construct(ConfigurationAdapter $adapter)
20
    {
21
        $this->adapter = $adapter;
22
    }
23
24
25
    /**
26
     * @param array $config
27
     *
28
     * @return array
29
     */
30
    public function map(array $config)
31
    {
32
        return $this->adapter->map($config);
33
    }
34
}
35