Completed
Push — master ( 9d24ed...186a0b )
by
unknown
29:37
created

GetMerchantDetailsResponse::addToProcessors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace net\authorize\api\contract\v1;
4
5
/**
6
 * Class representing GetMerchantDetailsResponse
7
 */
8
class GetMerchantDetailsResponse extends ANetApiResponseType
9
{
10
11
    /**
12
     * @property boolean $isTestMode
13
     */
14
    private $isTestMode = null;
15
16
    /**
17
     * @property \net\authorize\api\contract\v1\ProcessorType[] $processors
18
     */
19
    private $processors = null;
20
21
    /**
22
     * @property string $merchantName
23
     */
24
    private $merchantName = null;
25
26
    /**
27
     * @property string $gatewayId
28
     */
29
    private $gatewayId = null;
30
31
    /**
32
     * @property string[] $marketTypes
33
     */
34
    private $marketTypes = null;
35
36
    /**
37
     * @property string[] $productCodes
38
     */
39
    private $productCodes = null;
40
41
    /**
42
     * @property string[] $paymentMethods
43
     */
44
    private $paymentMethods = null;
45
46
    /**
47
     * @property string[] $currencies
48
     */
49
    private $currencies = null;
50
51
    /**
52
     * Gets as isTestMode
53
     *
54
     * @return boolean
55
     */
56
    public function getIsTestMode()
57
    {
58
        return $this->isTestMode;
59
    }
60
61
    /**
62
     * Sets a new isTestMode
63
     *
64
     * @param boolean $isTestMode
65
     * @return self
66
     */
67
    public function setIsTestMode($isTestMode)
68
    {
69
        $this->isTestMode = $isTestMode;
70
        return $this;
71
    }
72
73
    /**
74
     * Adds as processor
75
     *
76
     * @return self
77
     * @param \net\authorize\api\contract\v1\ProcessorType $processor
78
     */
79
    public function addToProcessors(\net\authorize\api\contract\v1\ProcessorType $processor)
80
    {
81
        $this->processors[] = $processor;
82
        return $this;
83
    }
84
85
    /**
86
     * isset processors
87
     *
88
     * @param scalar $index
89
     * @return boolean
90
     */
91
    public function issetProcessors($index)
92
    {
93
        return isset($this->processors[$index]);
94
    }
95
96
    /**
97
     * unset processors
98
     *
99
     * @param scalar $index
100
     * @return void
101
     */
102
    public function unsetProcessors($index)
103
    {
104
        unset($this->processors[$index]);
105
    }
106
107
    /**
108
     * Gets as processors
109
     *
110
     * @return \net\authorize\api\contract\v1\ProcessorType[]
111
     */
112
    public function getProcessors()
113
    {
114
        return $this->processors;
115
    }
116
117
    /**
118
     * Sets a new processors
119
     *
120
     * @param \net\authorize\api\contract\v1\ProcessorType[] $processors
121
     * @return self
122
     */
123
    public function setProcessors(array $processors)
124
    {
125
        $this->processors = $processors;
126
        return $this;
127
    }
128
129
    /**
130
     * Gets as merchantName
131
     *
132
     * @return string
133
     */
134
    public function getMerchantName()
135
    {
136
        return $this->merchantName;
137
    }
138
139
    /**
140
     * Sets a new merchantName
141
     *
142
     * @param string $merchantName
143
     * @return self
144
     */
145
    public function setMerchantName($merchantName)
146
    {
147
        $this->merchantName = $merchantName;
148
        return $this;
149
    }
150
151
    /**
152
     * Gets as gatewayId
153
     *
154
     * @return string
155
     */
156
    public function getGatewayId()
157
    {
158
        return $this->gatewayId;
159
    }
160
161
    /**
162
     * Sets a new gatewayId
163
     *
164
     * @param string $gatewayId
165
     * @return self
166
     */
167
    public function setGatewayId($gatewayId)
168
    {
169
        $this->gatewayId = $gatewayId;
170
        return $this;
171
    }
172
173
    /**
174
     * Adds as marketType
175
     *
176
     * @return self
177
     * @param string $marketType
178
     */
179
    public function addToMarketTypes($marketType)
180
    {
181
        $this->marketTypes[] = $marketType;
182
        return $this;
183
    }
184
185
    /**
186
     * isset marketTypes
187
     *
188
     * @param scalar $index
189
     * @return boolean
190
     */
191
    public function issetMarketTypes($index)
192
    {
193
        return isset($this->marketTypes[$index]);
194
    }
195
196
    /**
197
     * unset marketTypes
198
     *
199
     * @param scalar $index
200
     * @return void
201
     */
202
    public function unsetMarketTypes($index)
203
    {
204
        unset($this->marketTypes[$index]);
205
    }
206
207
    /**
208
     * Gets as marketTypes
209
     *
210
     * @return string[]
211
     */
212
    public function getMarketTypes()
213
    {
214
        return $this->marketTypes;
215
    }
216
217
    /**
218
     * Sets a new marketTypes
219
     *
220
     * @param string $marketTypes
221
     * @return self
222
     */
223
    public function setMarketTypes(array $marketTypes)
224
    {
225
        $this->marketTypes = $marketTypes;
226
        return $this;
227
    }
228
229
    /**
230
     * Adds as productCode
231
     *
232
     * @return self
233
     * @param string $productCode
234
     */
235
    public function addToProductCodes($productCode)
236
    {
237
        $this->productCodes[] = $productCode;
238
        return $this;
239
    }
240
241
    /**
242
     * isset productCodes
243
     *
244
     * @param scalar $index
245
     * @return boolean
246
     */
247
    public function issetProductCodes($index)
248
    {
249
        return isset($this->productCodes[$index]);
250
    }
251
252
    /**
253
     * unset productCodes
254
     *
255
     * @param scalar $index
256
     * @return void
257
     */
258
    public function unsetProductCodes($index)
259
    {
260
        unset($this->productCodes[$index]);
261
    }
262
263
    /**
264
     * Gets as productCodes
265
     *
266
     * @return string[]
267
     */
268
    public function getProductCodes()
269
    {
270
        return $this->productCodes;
271
    }
272
273
    /**
274
     * Sets a new productCodes
275
     *
276
     * @param string $productCodes
277
     * @return self
278
     */
279
    public function setProductCodes(array $productCodes)
280
    {
281
        $this->productCodes = $productCodes;
282
        return $this;
283
    }
284
285
    /**
286
     * Adds as paymentMethod
287
     *
288
     * @return self
289
     * @param string $paymentMethod
290
     */
291
    public function addToPaymentMethods($paymentMethod)
292
    {
293
        $this->paymentMethods[] = $paymentMethod;
294
        return $this;
295
    }
296
297
    /**
298
     * isset paymentMethods
299
     *
300
     * @param scalar $index
301
     * @return boolean
302
     */
303
    public function issetPaymentMethods($index)
304
    {
305
        return isset($this->paymentMethods[$index]);
306
    }
307
308
    /**
309
     * unset paymentMethods
310
     *
311
     * @param scalar $index
312
     * @return void
313
     */
314
    public function unsetPaymentMethods($index)
315
    {
316
        unset($this->paymentMethods[$index]);
317
    }
318
319
    /**
320
     * Gets as paymentMethods
321
     *
322
     * @return string[]
323
     */
324
    public function getPaymentMethods()
325
    {
326
        return $this->paymentMethods;
327
    }
328
329
    /**
330
     * Sets a new paymentMethods
331
     *
332
     * @param string $paymentMethods
333
     * @return self
334
     */
335
    public function setPaymentMethods(array $paymentMethods)
336
    {
337
        $this->paymentMethods = $paymentMethods;
338
        return $this;
339
    }
340
341
    /**
342
     * Adds as currency
343
     *
344
     * @return self
345
     * @param string $currency
346
     */
347
    public function addToCurrencies($currency)
348
    {
349
        $this->currencies[] = $currency;
350
        return $this;
351
    }
352
353
    /**
354
     * isset currencies
355
     *
356
     * @param scalar $index
357
     * @return boolean
358
     */
359
    public function issetCurrencies($index)
360
    {
361
        return isset($this->currencies[$index]);
362
    }
363
364
    /**
365
     * unset currencies
366
     *
367
     * @param scalar $index
368
     * @return void
369
     */
370
    public function unsetCurrencies($index)
371
    {
372
        unset($this->currencies[$index]);
373
    }
374
375
    /**
376
     * Gets as currencies
377
     *
378
     * @return string[]
379
     */
380
    public function getCurrencies()
381
    {
382
        return $this->currencies;
383
    }
384
385
    /**
386
     * Sets a new currencies
387
     *
388
     * @param string $currencies
389
     * @return self
390
     */
391
    public function setCurrencies(array $currencies)
392
    {
393
        $this->currencies = $currencies;
394
        return $this;
395
    }
396
397
398
}
399
400