Completed
Push — master ( da1ede...978d9b )
by Alexander
02:25
created

Airac   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 5
c 2
b 0
f 2
lcom 0
cbo 0
dl 0
loc 57
ccs 11
cts 11
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getDateStart() 0 4 1
A getDate() 0 4 1
A getDateEnd() 0 4 1
A getNumber() 0 4 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