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

ConfigFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
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
}