DynamicModulesConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 28
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApplicationPath() 0 3 1
A getNamespaces() 0 5 1
A getCommandProviderFilter() 0 3 1
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
}