Test Failed
Push — master ( b5ddc7...73c405 )
by Konstantins
05:51
created

ConfigFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 2
cp 0.5
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1.125
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Config;
4
5
use Venta\Contracts\Config\Config as ConfigContract;
6
use Venta\Contracts\Config\ConfigFactory as ConfigFactoryContract;
7
8
/**
9
 * Class ConfigFactory
10
 *
11
 * @package Venta\Config
12
 */
13
class ConfigFactory implements ConfigFactoryContract
14
{
15
    /**
16
     * @inheritDoc
17
     */
18
    public function create(array $data): ConfigContract
19
    {
20 4
        return new Config($data);
21
    }
22
}