ValidatorContainer::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Sensorario\Resources\Validators;
4
5
use Sensorario\Container\ArgumentBuilder;
6
7
class ValidatorContainer
8
{
9 42
    public static function load() : \Sensorario\Container\Container
10
    {
11 42
        $container = new \Sensorario\Container\Container();
12
13 42
        $services = require __DIR__ . '/../../../../config/services.php';
14
15 42
        $container->loadServices($services);
16
17 42
        return $container;
18
    }
19
}
20