DumperConfig   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
eloc 11
dl 0
loc 46
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

5 Methods

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