Passed
Push — master ( 1a17c3...faad8c )
by
unknown
01:09
created

DataContainerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Mediact\DataContainer;
8
9
/**
10
 * Creates data containers.
11
 */
12
class DataContainerFactory implements DataContainerFactoryInterface
13
{
14
    /**
15
     * Create a data container.
16
     *
17
     * @param array $data
18
     *
19
     * @return DataContainerInterface
20
     */
21 1
    public function create(array $data = []): DataContainerInterface
22
    {
23 1
        return new DataContainer($data);
24
    }
25
}
26