Passed
Push — master ( 1497f5...8a34be )
by Mike
10:00
created

DockerClientConfig::getDockerCommand()   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 4
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\DockerClient;
5
6
7
use Xervice\Core\Config\AbstractConfig;
8
9
class DockerClientConfig extends AbstractConfig
10
{
11
    const DOCKER_COMMAND = 'docker.command';
12
13
    const DOCKER_COMPOSE_COMMAND = 'docker.compose.command';
14
15
    /**
16
     * @return string
17
     * @throws \Xervice\Config\Exception\ConfigNotFound
18
     */
19
    public function getDockerCommand()
20
    {
21
        return $this->get(self::DOCKER_COMMAND, 'docker');
22
    }
23
24
    /**
25
     * @return string
26
     * @throws \Xervice\Config\Exception\ConfigNotFound
27
     */
28
    public function getDockerComposeCommand()
29
    {
30
        return $this->get(self::DOCKER_COMPOSE_COMMAND, 'docker-compose');
31
    }
32
}