Completed
Push — master ( da1ede...c82517 )
by Alexander
04:15
created

Airac::getDateEnd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace GetSky\AIRAC;
3
4
/**
5
 * Class Airac
6
 * @package GetSky\AIRAC
7
 */
8
class Airac
9
{
10
    /**
11
     * @var \DateTime
12
     */
13
    private $dateStart;
14
    
15
    /**
16
     * @var \DateTime
17
     */
18
    private $dateEnd;
19
20
    /**
21
     * @var string
22
     */
23
    private $number;
24
25 18
    public function __construct(\DateTime $dateStart, \DateTime $dateEnd, $number)
26
    {
27 18
        $this->dateStart = $dateStart;
28 18
        $this->dateEnd = $dateEnd;
29 18
        $this->number = $number;
30 18
    }
31
32
    /**
33
     * @return \DateTime
34
     */
35 18
    public function getDateStart()
36
    {
37 18
        return $this->dateStart;
38
    }
39
    
40
    /**
41
     * @deprecated Use getDataStart()
42
     * @return \DateTime
43
     */
44
    public function getDate()
45
    {
46
        return $this->dateStart;
47
    }
48
    
49
    /**
50
     * @return \DateTime
51
     */
52 18
    public function getDateEnd()
53
    {
54 18
        return $this->dateEnd;
55
    }
56
57
    /**
58
     * @return string
59
     */
60 18
    public function getNumber()
61
    {
62 18
        return $this->number;
63
    }
64
}
65