RequestData::setType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Invoice\Get;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractRequestData;
7
8
/**
9
 * The request data for getting the invoice.
10
 */
11
final class RequestData extends AbstractRequestData
12
{
13
    /**
14
     * The invoice ID.
15
     *
16
     * @var integer
17
     *
18
     * @JMS\Type("integer")
19
     * @JMS\SerializedName("INVOICE_ID")
20
     */
21
    protected $invoiceId;
22
23
    /**
24
     * The invoice number.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("INVOICE_NUMBER")
30
     */
31
    protected $invoiceNumber;
32
33
    /**
34
     * The invoice title.
35
     *
36
     * @var string
37
     *
38
     * @JMS\Type("string")
39
     * @JMS\SerializedName("INVOICE_TITLE")
40
     */
41
    protected $invoiceTitle;
42
43
    /**
44
     * The customer ID.
45
     *
46
     * @var integer
47
     *
48
     * @JMS\Type("integer")
49
     * @JMS\SerializedName("CUSTOMER_ID")
50
     */
51
    protected $customerId;
52
53
    /**
54
     * @var string
55
     *
56
     * @JMS\Type("string")
57
     * @JMS\SerializedName("MONTH")
58
     */
59
    protected $month;
60
61
    /**
62
     * @var string
63
     *
64
     * @JMS\Type("string")
65
     * @JMS\SerializedName("YEAR")
66
     */
67
    protected $year;
68
69
    /**
70
     * The invoice start date and time.
71
     *
72
     * @var \DateTime
73
     *
74
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
75
     * @JMS\SerializedName("START_DUE_DATE")
76
     */
77
    protected $startDate;
78
79
    /**
80
     * The invoice end date and time.
81
     *
82
     * @var \DateTime
83
     *
84
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
85
     * @JMS\SerializedName("END_DUE_DATE")
86
     */
87
    protected $endDate;
88
89
    /**
90
     * The invoice type.
91
     *
92
     * @var string
93
     *
94
     * @JMS\Type("string")
95
     * @JMS\SerializedName("TYPE")
96
     */
97
    protected $type;
98
99
    /**
100
     * Get the invoice ID.
101
     *
102
     * @return int
103
     */
104
    public function getInvoiceId()
105
    {
106
        return $this->invoiceId;
107
    }
108
109
    /**
110
     * Set the invoice ID.
111
     *
112
     * @param integer $invoiceId The invoice ID.
113
     * @return RequestData
114
     */
115
    public function setInvoiceId($invoiceId)
116
    {
117
        $this->invoiceId = $invoiceId;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get the invoice number.
124
     *
125
     * @return string
126
     */
127
    public function getInvoiceNumber()
128
    {
129
        return $this->invoiceNumber;
130
    }
131
132
    /**
133
     * Set the invoice number.
134
     *
135
     * @param string $invoiceNumber The invoice number.
136
     * @return RequestData
137
     */
138
    public function setInvoiceNumber($invoiceNumber)
139
    {
140
        $this->invoiceNumber = $invoiceNumber;
141
142
        return $this;
143
    }
144
145
    /**
146
     * Get the invoice title.
147
     *
148
     * @return string
149
     */
150
    public function getInvoiceTitle()
151
    {
152
        return $this->invoiceTitle;
153
    }
154
155
    /**
156
     * Set the invoice title.
157
     *
158
     * @param string $invoiceTitle
159
     * @return RequestData
160
     */
161
    public function setInvoiceTitle($invoiceTitle)
162
    {
163
        $this->invoiceTitle = $invoiceTitle;
164
165
        return $this;
166
    }
167
168
    /**
169
     * Get the customer ID.
170
     *
171
     * @return int
172
     */
173
    public function getCustomerId()
174
    {
175
        return $this->customerId;
176
    }
177
178
    /**
179
     * Set the customer ID.
180
     *
181
     * @param int $customerId
182
     * @return RequestData
183
     */
184
    public function setCustomerId($customerId)
185
    {
186
        $this->customerId = $customerId;
187
188
        return $this;
189
    }
190
191
    /**
192
     * Get the month.
193
     *
194
     * @return string
195
     */
196
    public function getMonth()
197
    {
198
        return $this->month;
199
    }
200
201
    /**
202
     * Set the month.
203
     *
204
     * @param string $month
205
     * @return RequestData
206
     */
207
    public function setMonth($month)
208
    {
209
        $this->month = $month;
210
211
        return $this;
212
    }
213
214
    /**
215
     * Get the year.
216
     *
217
     * @return string
218
     */
219
    public function getYear()
220
    {
221
        return $this->year;
222
    }
223
224
    /**
225
     * Set the year.
226
     *
227
     * @param string $year
228
     * @return RequestData
229
     */
230
    public function setYear($year)
231
    {
232
        $this->year = $year;
233
234
        return $this;
235
    }
236
237
    /**
238
     * Get the start date.
239
     *
240
     * @return \DateTime
241
     */
242
    public function getStartDate()
243
    {
244
        return $this->startDate;
245
    }
246
247
    /**
248
     * Set the start date.
249
     *
250
     * @param \DateTime $startDate
251
     * @return RequestData
252
     */
253
    public function setStartDate($startDate)
254
    {
255
        $this->startDate = $startDate;
256
257
        return $this;
258
    }
259
260
    /**
261
     * Get the end date.
262
     *
263
     * @return \DateTime
264
     */
265
    public function getEndDate()
266
    {
267
        return $this->endDate;
268
    }
269
270
    /**
271
     * Set the end date.
272
     *
273
     * @param \DateTime $endDate
274
     * @return RequestData
275
     */
276
    public function setEndDate($endDate)
277
    {
278
        $this->endDate = $endDate;
279
280
        return $this;
281
    }
282
283
    /**
284
     * Get the type.
285
     *
286
     * @return string
287
     */
288
    public function getType()
289
    {
290
        return $this->type;
291
    }
292
293
    /**
294
     * Set the type.
295
     *
296
     * @param string $type
297
     * @return RequestData
298
     */
299
    public function setType($type)
300
    {
301
        $this->type = $type;
302
303
        return $this;
304
    }
305
}
306