Module   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 68
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceModules() 0 8 1
A getModuleConfigKey() 0 4 1
A getAutoloaderConfig() 0 10 1
A getConfig() 0 4 1
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/entry-name-resolver
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service\Service;
7
8
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
9
use Zend\ModuleManager\Feature\ConfigProviderInterface;
10
use Nnx\ModuleOptions\ModuleConfigKeyProviderInterface;
11
use Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service;
12
13
/**
14
 * Class Module
15
 *
16
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service\Service
17
 */
18
class Module implements
19
    AutoloaderProviderInterface,
20
    ConfigProviderInterface,
21
    ModuleConfigKeyProviderInterface
22
{
23
24
25
    /**
26
     * Имя секции в конфиги приложения отвечающей за настройки модуля
27
     *
28
     * @var string
29
     */
30
    const CONFIG_KEY = 'service_service';
31
32
    /**
33
     * Имя модуля
34
     *
35
     * @var string
36
     */
37
    const MODULE_NAME = __NAMESPACE__;
38
39
    /**
40
     * @inheritdoc
41
     *
42
     * @return array
43
     */
44
    public function getServiceModules()
45
    {
46
        return [
47
            Service\Module1\Module::MODULE_NAME,
48
            Service\Module2\Module::MODULE_NAME,
49
            Service\Module3\Module::MODULE_NAME,
50
        ];
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getModuleConfigKey()
57
    {
58
        return static::CONFIG_KEY;
59
    }
60
61
    /**
62
     * @return array
63
     */
64
    public function getAutoloaderConfig()
65
    {
66
        return [
67
            'Zend\Loader\StandardAutoloader' => [
68
                'namespaces' => [
69
                    __NAMESPACE__ => __DIR__ . '/src/',
70
                ],
71
            ],
72
        ];
73
    }
74
75
76
    /**
77
     * @inheritdoc
78
     *
79
     * @return array
80
     */
81
    public function getConfig()
82
    {
83
        return include __DIR__ . '/config/module.config.php';
84
    }
85
}