Completed
Push — master ( 742ff7...9d59a2 )
by Nikola
09:00
created

StaticConfigLoader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A load() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Phoundation\Config;
6
7
final class StaticConfigLoader implements ConfigLoader
8
{
9
    /** @var array */
10
    private $config;
11
12
    public function __construct(array $config)
13
    {
14
        $this->config = $config;
15
    }
16
17
    public function load(): array
18
    {
19
        return $this->config;
20
    }
21
}
22