Completed
Push — master ( a5ff2b...bf9940 )
by Yann
05:35
created

RelatedDates   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 29
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAcceptanceDateTime() 0 4 1
A fromUnstructured() 0 6 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
/**
6
 * Class RelatedDates
7
 * @package Genkgo\Camt\DTO
8
 */
9
class RelatedDates
10
{
11
    
12
    /**
13
     * @var AcceptanceDateTime
14
     */
15
    private $acceptanceDateTime;
16
17
    /**
18
     * @return AcceptanceDateTime
19
     */
20
    public function getAcceptanceDateTime()
21
    {
22
        return $this->acceptanceDateTime;
23
    }
24
25
    /**
26
     * @param $acceptanceDateTime
27
     *
28
     * @return static
29
     */
30 1
    public static function fromUnstructured($acceptanceDateTime)
31
    {
32 1
        $information = new static;
33 1
        $information->acceptanceDateTime = $acceptanceDateTime;
34 1
        return $information;
35
    }
36
37
}
38