CustomCommandConfig::getCommandPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
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
declare(strict_types=1);
3
4
namespace Nexus\CustomCommand;
5
6
use Xervice\Config\Business\XerviceConfig;
7
use Xervice\Core\Business\Model\Config\AbstractConfig;
8
9
class CustomCommandConfig extends AbstractConfig
10
{
11
    public const COMMAND_PATH = 'command.path';
12
13
    /**
14
     * @return string
15
     */
16
    public function getCommandPath(): string
17
    {
18
        return $this->get(
19
            self::COMMAND_PATH,
20
            $this->get(XerviceConfig::APPLICATION_PATH) . '/commands'
21
        );
22
    }
23
}