PersonalIdFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createNewInstance() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace byrokrat\id;
6
7
class PersonalIdFactory implements IdFactoryInterface
8
{
9
    use Helper\IdFactoryDecoratorTrait;
10 2
11
    protected function createNewInstance(string $raw, \DateTimeInterface $atDate = null): IdInterface
12 2
    {
13
        return new PersonalId($raw, $atDate);
14
    }
15
}
16