DockerClientConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 20
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDockerCommand() 0 3 1
A getDockerComposeCommand() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexus\DockerClient;
5
6
use Xervice\Core\Business\Model\Config\AbstractConfig;
7
8
class DockerClientConfig extends AbstractConfig
9
{
10
    public const DOCKER_COMMAND = 'docker.command';
11
12
    public const DOCKER_COMPOSE_COMMAND = 'docker.compose.command';
13
14
    /**
15
     * @return string
16
     */
17
    public function getDockerCommand(): string
18
    {
19
        return $this->get(self::DOCKER_COMMAND, 'docker');
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getDockerComposeCommand(): string
26
    {
27
        return $this->get(self::DOCKER_COMPOSE_COMMAND, 'docker-compose');
28
    }
29
}