Test Failed
Push — master ( fdad3b...1a9d53 )
by Mike
07:27
created

CustomCommandConfig::getCommandPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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