Completed
Push — feature/api ( 725c17...de88d6 )
by Laurent
01:40
created

FlightForQuarterAndPilotQuery   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 54
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getPilotId() 0 4 1
A getQuarter() 0 4 1
A getYear() 0 4 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace flightlog\query;
7
8
/**
9
 * @author Laurent De Coninck <[email protected]>
10
 */
11
class FlightForQuarterAndPilotQuery
12
{
13
14
    /**
15
     * @var int
16
     */
17
    private $pilotId;
18
19
    /**
20
     * @var int
21
     */
22
    private $quarter;
23
24
    /**
25
     * @var int
26
     */
27
    private $year;
28
29
    /**
30
     * @param int $pilotId
31
     * @param int $quarter
32
     * @param int $year
33
     */
34
    public function __construct($pilotId, $quarter, $year)
35
    {
36
        $this->pilotId = (int) $pilotId;
37
        $this->quarter = (int) $quarter;
38
        $this->year = (int) $year;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getPilotId()
45
    {
46
        return $this->pilotId;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function getQuarter()
53
    {
54
        return $this->quarter;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getYear()
61
    {
62
        return $this->year;
63
    }
64
}