Completed
Push — master ( 547415...3a683c )
by Laurent
01:39
created

CreateReceiverMonthBillCommand::getBillingCondition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
require_once __DIR__ . '/../class/billing/monthly/MonthlyFlightBill.php';
4
require_once __DIR__ . '/CommandInterface.php';
5
6
/**
7
 * @author Laurent De Coninck <[email protected]>
8
 */
9
class CreateReceiverMonthBillCommand implements CommandInterface
10
{
11
    /**
12
     * @var MonthlyFlightBill
13
     */
14
    private $monthlyFlightBill;
15
16
    /**
17
     * @var int
18
     */
19
    private $billType;
20
21
    /**
22
     * @var string
23
     */
24
    private $publicNote;
25
26
    /**
27
     * @var string
28
     */
29
    private $privateNote;
30
31
    /**
32
     * @var int
33
     */
34
    private $year;
35
36
    /**
37
     * @var int
38
     */
39
    private $month;
40
41
    /**
42
     * @param MonthlyFlightBill $monthlyFlightBill
43
     * @param int               $billType
44
     * @param string            $publicNote
45
     * @param string            $privateNote
46
     * @param int               $year
47
     * @param int               $month
48
     */
49
    public function __construct(
50
        MonthlyFlightBill $monthlyFlightBill,
51
        $billType,
52
        $publicNote,
53
        $privateNote,
54
        $year,
55
        $month
56
    ) {
57
        $this->monthlyFlightBill = $monthlyFlightBill;
58
        $this->billType = $billType;
59
        $this->publicNote = $publicNote;
60
        $this->privateNote = $privateNote;
61
        $this->year = $year;
62
        $this->month = $month;
63
    }
64
65
66
    /**
67
     * @return int
68
     */
69
    public function getReceiverId()
70
    {
71
        return $this->monthlyFlightBill->getReceiverId();
72
    }
73
74
    /**
75
     * @return array|Bbcvols[]
76
     */
77
    public function getFlights()
78
    {
79
        return $this->monthlyFlightBill->getFlights();
80
    }
81
82
    /**
83
     * @return MonthlyFlightBill
84
     */
85
    public function getMonthlyFlightBill()
86
    {
87
        return $this->monthlyFlightBill;
88
    }
89
90
    /**
91
     * @return int
92
     */
93
    public function getBillType()
94
    {
95
        return $this->billType;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getPublicNote()
102
    {
103
        return $this->publicNote;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getPrivateNote()
110
    {
111
        return $this->privateNote;
112
    }
113
114
    /**
115
     * @return int
116
     */
117
    public function getYear()
118
    {
119
        return $this->year;
120
    }
121
122
    /**
123
     * @return int
124
     */
125
    public function getMonth()
126
    {
127
        return $this->month;
128
    }
129
}