Completed
Push — master ( c82517...da1ede )
by Alexander
03:32 queued 58s
created

Airac   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 34
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDate() 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 $date;
14
15
    /**
16
     * @var string
17
     */
18
    private $number;
19
20 18
    public function __construct(\DateTime $date, $number)
21
    {
22 18
        $this->date = $date;
23 18
        $this->number = $number;
24 18
    }
25
26
    /**
27
     * @return \DateTime
28
     */
29 18
    public function getDate()
30
    {
31 18
        return $this->date;
32
    }
33
34
    /**
35
     * @return string
36
     */
37 18
    public function getNumber()
38
    {
39 18
        return $this->number;
40
    }
41
}
42