Airac::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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 48
    public function __construct(\DateTime $dateStart, \DateTime $dateEnd, $number)
26
    {
27 48
        $this->dateStart = $dateStart;
28 48
        $this->dateEnd = $dateEnd;
29 48
        $this->number = $number;
30 48
    }
31
32
    /**
33
     * @return \DateTime
34
     */
35 48
    public function getDateStart()
36
    {
37 48
        return $this->dateStart;
38
    }
39
40
    /**
41
     * @return \DateTime
42
     */
43 48
    public function getDateEnd()
44
    {
45 48
        return $this->dateEnd;
46
    }
47
48
    /**
49
     * @return string
50
     */
51 48
    public function getNumber()
52
    {
53 48
        return $this->number;
54
    }
55
}
56