ConnectionConfiguration::map()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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