NullCreator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
/**
3
 * File was created 17.05.2016 08:34
4
 */
5
6
namespace PeekAndPoke\Component\Creator;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class NullCreator implements Creator
12
{
13
    /**
14
     * Creates a new instance
15
     *
16
     * @param mixed $data
17
     *
18
     * @return null
19
     */
20 2
    public function create($data = null)
21
    {
22 2
        return null;
23
    }
24
}
25