Completed
Push — master ( 70a113...5db400 )
by Nicolas
02:54
created

GenerateConfigReader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A read() 0 4 1
1
<?php
2
3
namespace Nwidart\Modules\Support\Config;
4
5
class GenerateConfigReader
6
{
7 79
    public static function read(string $value) : GeneratorPath
8
    {
9 79
        return new GeneratorPath(config("modules.paths.generator.$value"));
10
    }
11
}
12