Completed
Push — 3.0 ( 5276e1...94e02b )
by Vermeulen
01:25
created

Config::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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