CreateWithDefaultConstructor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 8
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 06:09
4
 */
5
6
namespace PeekAndPoke\Component\Creator;
7
8
9
/**
10
 * CreateWithDefaultConstructor
11
 *
12
 * @author Karsten J. Gerber <[email protected]>
13
 */
14
class CreateWithDefaultConstructor extends AbstractCreator
15
{
16
    /**
17
     * @inheritdoc
18
     */
19 17
    public function create($data = null)
20
    {
21 17
        return $this->getClass()->newInstance();
22
    }
23
}
24