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

DumperConfig::getDumpDirectory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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