Completed
Push — master ( 5a0e22...3dcaa1 )
by Thomas Mauro
02:54
created

Module   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 16 1
1
<?php
2
3
namespace PamiModule;
4
5
/**
6
 * Class Module.
7
 */
8
class Module
9
{
10
    /**
11
     * Provide configuration for an application integrating PamiModule.
12
     *
13
     * @return array
14
     */
15 5
    public function getConfig()
16
    {
17 5
        $provider = new ConfigProvider();
18
19
        return [
20
            'pami_module' => [
21 5
                'connection' => [],
22 5
                'client' => [],
23 5
            ],
24
            'pami_module_factories' => [
25 5
                'connection' => Service\ConnectionFactory::class,
26 5
                'client' => Service\ClientFactory::class,
27 5
            ],
28 5
            'service_manager' => $provider->getDependencyConfig(),
29 5
        ];
30
    }
31
}
32