Configurator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Mokka\Config;
4
5
6
use Noodlehaus\Config;
7
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
8
9
/**
10
 * Class Configurator
11
 * @package Botta\Config
12
 */
13
class Configurator
14
{
15
16
    /**
17
     * @var string
18
     */
19
    private $directory;
20
21
    /**
22
     * Configurator constructor.
23
     * @param $directory
24
     */
25
    public function __construct($directory)
26
    {
27
28
        $this->directory = $directory;
29
    }
30
31
    /**
32
     * @return Config
33
     */
34
    public function make()
35
    {
36
        return new Config($this->directory);
37
38
    }
39
40
}