RelatedDates   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 15
ccs 2
cts 4
cp 0.5
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAcceptanceDateTime() 0 3 1
A fromUnstructured() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
use DateTimeImmutable;
8
9
class RelatedDates
10
{
11
    private DateTimeImmutable $acceptanceDateTime;
12
13
    public function getAcceptanceDateTime(): DateTimeImmutable
14
    {
15
        return $this->acceptanceDateTime;
16
    }
17
18
    public static function fromUnstructured(DateTimeImmutable $acceptanceDateTime): self
19
    {
20
        $information = new self();
21 1
        $information->acceptanceDateTime = $acceptanceDateTime;
22
23 1
        return $information;
24 1
    }
25
}
26