ConfigLoader::setSourceName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Consolidation\Config\Loader;
4
5
/**
6
 * Load configuration files.
7
 */
8
abstract class ConfigLoader implements ConfigLoaderInterface
9
{
10
    protected $config = [];
11
    protected $source = '';
12
13
    public function getSourceName()
14
    {
15
        return $this->source;
16
    }
17
18
    protected function setSourceName($source)
19
    {
20
        $this->source = $source;
21
        return $this;
22
    }
23
24
    public function export()
25
    {
26
        return $this->config;
27
    }
28
29
    public function keys()
30
    {
31
        return array_keys($this->config);
32
    }
33
34
    abstract public function load($path);
35
}
36