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

RelatedDates::getAcceptanceDateTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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