Completed
Branch feature/create_monthly_billing (30fb74)
by Laurent
02:14
created

CreatePilotMonthBillCommand::getYear()   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
5
/**
6
 * @author Laurent De Coninck <[email protected]>
7
 */
8
class CreatePilotMonthBillCommand
9
{
10
    /**
11
     * @var MonthlyFlightBill
12
     */
13
    private $monthlyFlightBill;
14
15
    /**
16
     * @var int
17
     */
18
    private $billingType;
19
20
    /**
21
     * @var int
22
     */
23
    private $billType;
24
25
    /**
26
     * @var int
27
     */
28
    private $billingCondition;
29
30
    /**
31
     * @var int
32
     */
33
    private $modelDocument;
34
35
    /**
36
     * @var string
37
     */
38
    private $publicNote;
39
40
    /**
41
     * @var string
42
     */
43
    private $privateNote;
44
45
    /**
46
     * @var int
47
     */
48
    private $year;
49
50
    /**
51
     * @var int
52
     */
53
    private $month;
54
55
    /**
56
     * @param MonthlyFlightBill $monthlyFlightBill
57
     * @param int               $billingType
58
     * @param int               $billType
59
     * @param int               $billingCondition
60
     * @param int               $modelDocument
61
     * @param string            $publicNote
62
     * @param string            $privateNote
63
     * @param int               $year
64
     * @param int               $month
65
     */
66 View Code Duplication
    public function __construct(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
67
        MonthlyFlightBill $monthlyFlightBill,
68
        $billingType,
69
        $billType,
70
        $billingCondition,
71
        $modelDocument,
72
        $publicNote,
73
        $privateNote,
74
        $year,
75
        $month
76
    ) {
77
        $this->monthlyFlightBill = $monthlyFlightBill;
78
        $this->billingType = $billingType;
79
        $this->billType = $billType;
80
        $this->billingCondition = $billingCondition;
81
        $this->modelDocument = $modelDocument;
82
        $this->publicNote = $publicNote;
83
        $this->privateNote = $privateNote;
84
        $this->year = $year;
85
        $this->month = $month;
86
    }
87
88
89
    /**
90
     * @return int
91
     */
92
    public function getReceiverId()
93
    {
94
        return $this->monthlyFlightBill->getReceiverId();
95
    }
96
97
    /**
98
     * @return array|Bbcvols[]
99
     */
100
    public function getFlights()
101
    {
102
        return $this->monthlyFlightBill->getFlights();
103
    }
104
105
    /**
106
     * @return MonthlyFlightBill
107
     */
108
    public function getMonthlyFlightBill()
109
    {
110
        return $this->monthlyFlightBill;
111
    }
112
113
    /**
114
     * @return int
115
     */
116
    public function getBillingType()
117
    {
118
        return $this->billingType;
119
    }
120
121
    /**
122
     * @return int
123
     */
124
    public function getBillType()
125
    {
126
        return $this->billType;
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getBillingCondition()
133
    {
134
        return $this->billingCondition;
135
    }
136
137
    /**
138
     * @return int
139
     */
140
    public function getModelDocument()
141
    {
142
        return $this->modelDocument;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getPublicNote()
149
    {
150
        return $this->publicNote;
151
    }
152
153
    /**
154
     * @return string
155
     */
156
    public function getPrivateNote()
157
    {
158
        return $this->privateNote;
159
    }
160
161
    /**
162
     * @return int
163
     */
164
    public function getYear()
165
    {
166
        return $this->year;
167
    }
168
169
    /**
170
     * @return int
171
     */
172
    public function getMonth()
173
    {
174
        return $this->month;
175
    }
176
}