Test Failed
Pull Request — master (#11)
by Witold
03:24
created

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace TacticianModule;
3
4
class ConfigProvider
5
{
6
    private $config;
7
8
    public function __construct()
9
    {
10
        $this->config = (new Module())->getConfig();
11
    }
12
13
    public function __invoke()
14
    {
15
        $config = $this->config;
16
17
        $config['dependencies'] = $config['service_manager'];
18
19
        return $config;
20
    }
21
22
    public function getDependencies()
23
    {
24
        return $this->config['service_manager'];
25
    }
26
}
27