Config   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __invoke() 0 3 1
A getConfig() 0 3 1
1
<?php
2
3
namespace BFW\Core\AppSystems;
4
5
class Config extends AbstractSystem
6
{
7
    /**
8
     * @var \BFW\Config $config The config object for BFW framework
9
     */
10
    protected $config;
11
    
12
    /**
13
     * Define config object and load all config file used by the framework
14
     */
15
    public function __construct()
16
    {
17
        $this->config = new \BFW\Config('bfw');
18
        $this->config->loadFiles();
19
    }
20
    
21
    /**
22
     * {@inheritdoc}
23
     * 
24
     * @return \BFW\Config
25
     */
26
    public function __invoke()
27
    {
28
        return $this->config;
29
    }
30
31
    /**
32
     * Getter accessor to the property config
33
     * 
34
     * @return \BFW\Config
35
     */
36
    public function getConfig()
37
    {
38
        return $this->config;
39
    }
40
}
41