Configuration::getPath()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 2
c 0
b 0
f 0
nc 2
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 6
rs 10
1
<?php
2
namespace Wandu\Migrator;
3
4
class Configuration
5
{
6
    /** @var array */
7
    protected $config;
8
    
9
    /**
10
     * @param array $config
11
     */
12
    public function __construct(array $config = [])
13
    {
14
        $this->config = $config;
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function getPath()
21
    {
22
        return isset($this->config['path']) ? $this->config['path'] : null;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getTable()
29
    {
30
        return isset($this->config['table']) ? $this->config['table'] : null;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getConnection()
37
    {
38
        return isset($this->config['connection']) ? $this->config['connection'] : null;
39
    }
40
}
41