BillableFlightQuery   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isIncludeTotal() 0 4 1
A getFiscalYear() 0 4 1
A hasYear() 0 4 1
1
<?php
2
/**
3
 *
4
 */
5
6
/**
7
 * BillableFlightQuery class
8
 *
9
 * @author Laurent De Coninck <[email protected]>
10
 */
11
class BillableFlightQuery
12
{
13
14
    /**
15
     * @var boolean
16
     */
17
    private $includeTotal;
18
19
    /**
20
     * @var int
21
     */
22
    private $fiscalYear;
23
24
    /**
25
     * @param bool $includeTotal
26
     * @param int  $fiscalYear
27
     */
28
    public function __construct($includeTotal = true, $fiscalYear = 0)
29
    {
30
        $this->includeTotal = $includeTotal;
31
        $this->fiscalYear = $fiscalYear;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isIncludeTotal()
38
    {
39
        return $this->includeTotal;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getFiscalYear()
46
    {
47
        return $this->fiscalYear;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53
    public function hasYear()
54
    {
55
        return $this->fiscalYear != 0;
56
    }
57
58
}