DynamicModulesConfig::getApplicationPath()   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\DynamicModules;
5
6
use Xervice\Config\Business\XerviceConfig;
7
use Xervice\Core\Business\Model\Config\AbstractConfig;
8
use Xervice\Core\CoreConfig;
9
10
class DynamicModulesConfig extends AbstractConfig
11
{
12
    public const COMMAND_PROVIDER_FILTER = 'command.provider.filter';
13
14
    /**
15
     * @return string
16
     */
17
    public function getCommandProviderFilter(): string
18
    {
19
        return $this->get(self::COMMAND_PROVIDER_FILTER, '*CommandProvider.php');
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getApplicationPath(): string
26
    {
27
        return $this->get(XerviceConfig::APPLICATION_PATH);
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getNamespaces(): array
34
    {
35
        return array_merge(
36
            $this->get(CoreConfig::CORE_NAMESPACES),
37
            $this->get(CoreConfig::PROJECT_NAMESPACES)
38
        );
39
    }
40
}