Completed
Push — master ( bb4c25...f83182 )
by Hannes
06:23
created

OrganizationIdFactory   A

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 OrganizationIdFactory implements IdFactoryInterface
8
{
9
    use Helper\IdFactoryDecoratorTrait;
10 2
11
    protected function createNewInstance(string $raw, \DateTimeInterface $atDate = null): IdInterface
0 ignored issues
show
Unused Code introduced by
The parameter $atDate is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
12 2
    {
13
        return new OrganizationId($raw);
14
    }
15
}
16