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

DockerClientConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDockerCommand() 0 4 1
A getDockerComposeCommand() 0 4 1
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
}