NullCreator::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 1
nc 1
nop 1
crap 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