DockerClientConfig::getDockerComposeCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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