Passed
Push — master ( 7d9c07...51533e )
by Mike
06:52
created

DumperConfig   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 57
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getSshHost() 0 4 1
A getSshUser() 0 4 1
A getProject() 0 4 1
A getImageName() 0 4 1
A getDumpDirectory() 0 4 1
1
<?php
2
3
4
namespace Nexus\Dumper;
5
6
7
use Xervice\Core\Config\AbstractConfig;
8
9
class DumperConfig extends AbstractConfig
10
{
11
    const SSH_HOST = 'ssh.host';
12
13
    const SSH_USER = 'ssh.user';
14
15
    const PROJECT_NAME = 'project.name';
16
17
    const IMAGE_NAME = 'image.name';
18
19
    const DUMP_DIRECTORY = 'dump.directory';
20
21
    /**
22
     * @return string
23
     * @throws \Xervice\Config\Exception\ConfigNotFound
24
     */
25
    public function getSshHost()
26
    {
27
        return $this->get(self::SSH_HOST);
28
    }
29
30
    /**
31
     * @return string
32
     * @throws \Xervice\Config\Exception\ConfigNotFound
33
     */
34
    public function getSshUser()
35
    {
36
        return $this->get(self::SSH_USER);
37
    }
38
39
    /**
40
     * @return string
41
     * @throws \Xervice\Config\Exception\ConfigNotFound
42
     */
43
    public function getProject()
44
    {
45
        return $this->get(self::PROJECT_NAME);
46
    }
47
48
    /**
49
     * @return string
50
     * @throws \Xervice\Config\Exception\ConfigNotFound
51
     */
52
    public function getImageName()
53
    {
54
        return $this->get(self::IMAGE_NAME);
55
    }
56
57
    /**
58
     * @return string
59
     * @throws \Xervice\Config\Exception\ConfigNotFound
60
     */
61
    public function getDumpDirectory()
62
    {
63
        return $this->get(self::DUMP_DIRECTORY);
64
    }
65
}