Completed
Pull Request — master (#552)
by Greg
03:27
created

ConfigLoader   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSourceName() 0 4 1
A setSourceName() 0 5 1
A export() 0 4 1
A keys() 0 4 1
1
<?php
2
3
namespace Robo\Config;
4
5
use Grasmash\YamlExpander\Expander;
6
7
/**
8
 * Load configuration files, and fill in any property values that
9
 * need to be expanded.
10
 */
11
class ConfigLoader implements ConfigLoaderInterface
12
{
13
    protected $config = [];
14
    protected $source = '';
15
16
    public function getSourceName()
17
    {
18
        return $this->source;
19
    }
20
21
    protected function setSourceName($source)
22
    {
23
        $this->source = $source;
24
        return $this;
25
    }
26
27
    public function export()
28
    {
29
        return $this->config;
30
    }
31
32
    public function keys()
33
    {
34
        return array_keys($this->config);
35
    }
36
}
37