Total Complexity | 57 |
Total Lines | 529 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
Complex classes like TransactionSearchRequestType often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use TransactionSearchRequestType, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class TransactionSearchRequestType extends AbstractRequestType |
||
13 | { |
||
14 | /** |
||
15 | * The StartDate |
||
16 | * Meta information extracted from the WSDL |
||
17 | * - documentation: The earliest transaction date at which to start the search. No wildcards are allowed. Required |
||
18 | * - maxOccurs: 1 |
||
19 | * - minOccurs: 1 |
||
20 | * @var string |
||
21 | */ |
||
22 | public $StartDate; |
||
23 | /** |
||
24 | * The EndDate |
||
25 | * Meta information extracted from the WSDL |
||
26 | * - documentation: The latest transaction date to be included in the search Optional |
||
27 | * - minOccurs: 0 |
||
28 | * @var string |
||
29 | */ |
||
30 | public $EndDate; |
||
31 | /** |
||
32 | * The Payer |
||
33 | * Meta information extracted from the WSDL |
||
34 | * - documentation: Search by the buyer's email address OptionalCharacter length and limitations: 127 single-byte alphanumeric characters |
||
35 | * - base: xs:string |
||
36 | * - maxOccurs: 1 |
||
37 | * - minOccurs: 0 |
||
38 | * @var string |
||
39 | */ |
||
40 | public $Payer; |
||
41 | /** |
||
42 | * The Receiver |
||
43 | * Meta information extracted from the WSDL |
||
44 | * - documentation: Search by the receiver's email address. If the merchant account has only one email, this is the primary email. Can also be a non-primary email.Optional |
||
45 | * - base: xs:string |
||
46 | * - maxOccurs: 1 |
||
47 | * - minOccurs: 0 |
||
48 | * @var string |
||
49 | */ |
||
50 | public $Receiver; |
||
51 | /** |
||
52 | * The ReceiptID |
||
53 | * Meta information extracted from the WSDL |
||
54 | * - documentation: Search by the PayPal Account Optional receipt IDOptional |
||
55 | * - maxOccurs: 1 |
||
56 | * - minOccurs: 0 |
||
57 | * @var string |
||
58 | */ |
||
59 | public $ReceiptID; |
||
60 | /** |
||
61 | * The TransactionID |
||
62 | * Meta information extracted from the WSDL |
||
63 | * - documentation: Search by the transaction ID. OptionalThe returned results are from the merchant's transaction records. Character length and limitations: 19 single-byte characters maximum | TransactionId - Type for a PayPal Transaction ID. |
||
64 | * - base: xs:string |
||
65 | * - maxOccurs: 1 |
||
66 | * - minOccurs: 0 |
||
67 | * @var string |
||
68 | */ |
||
69 | public $TransactionID; |
||
70 | /** |
||
71 | * The ProfileID |
||
72 | * Meta information extracted from the WSDL |
||
73 | * - documentation: Search by Recurring Payment Profile id. The ProfileID is returned as part of the CreateRecurringPaymentsProfile API response. Optional |
||
74 | * - maxOccurs: 1 |
||
75 | * - minOccurs: 0 |
||
76 | * @var string |
||
77 | */ |
||
78 | public $ProfileID; |
||
79 | /** |
||
80 | * The PayerName |
||
81 | * Meta information extracted from the WSDL |
||
82 | * - documentation: Search by the buyer's name OptionalSalutation: 20 single-byte character limit.FirstName: 25 single-byte character limit.MiddleName: 25 single-byte character limit.LastName: 25 single-byte character limit.Suffix: 12 single-byte |
||
83 | * character limit. |
||
84 | * - maxOccurs: 1 |
||
85 | * - minOccurs: 0 |
||
86 | * @var \PayPal\StructType\PersonNameType |
||
87 | */ |
||
88 | public $PayerName; |
||
89 | /** |
||
90 | * The AuctionItemNumber |
||
91 | * Meta information extracted from the WSDL |
||
92 | * - documentation: Search by item number of the purchased goods.OptionalTo search for purchased items not related to auctions, set the AuctionItemNumber element to the value of the HTML item_number variable set in the shopping cart for the original |
||
93 | * transaction. |
||
94 | * - maxOccurs: 1 |
||
95 | * - minOccurs: 0 |
||
96 | * @var string |
||
97 | */ |
||
98 | public $AuctionItemNumber; |
||
99 | /** |
||
100 | * The InvoiceID |
||
101 | * Meta information extracted from the WSDL |
||
102 | * - documentation: Search by invoice identification key, as set by you for the original transaction. InvoiceID searches the invoice records for items sold by the merchant, not the items purchased. OptionalThe value for InvoiceID must exactly match an |
||
103 | * invoice identification number. No wildcards are allowed. Character length and limitations: 127 single-byte characters maximum |
||
104 | * - maxOccurs: 1 |
||
105 | * - minOccurs: 0 |
||
106 | * @var string |
||
107 | */ |
||
108 | public $InvoiceID; |
||
109 | /** |
||
110 | * The CardNumber |
||
111 | * Meta information extracted from the WSDL |
||
112 | * - maxOccurs: 1 |
||
113 | * - minOccurs: 0 |
||
114 | * @var string |
||
115 | */ |
||
116 | public $CardNumber; |
||
117 | /** |
||
118 | * The TransactionClass |
||
119 | * Meta information extracted from the WSDL |
||
120 | * - documentation: Search by classification of transaction. Some kinds of possible classes of transactions are not searchable with TransactionSearchRequest. You cannot search for bank transfer withdrawals, for example. OptionalAll: all transaction |
||
121 | * classifications.Sent: only payments sent.Received: only payments received.MassPay: only mass payments.MoneyRequest: only money requests.FundsAdded: only funds added to balance.FundsWithdrawn: only funds withdrawn from balance.Referral: only |
||
122 | * transactions involving referrals.Fee: only transactions involving fees.Subscription: only transactions involving subscriptions.Dividend: only transactions involving dividends.Billpay: only transactions involving BillPay Transactions.Refund: only |
||
123 | * transactions involving funds.CurrencyConversions: only transactions involving currency conversions.BalanceTransfer: only transactions involving balance transfers.Reversal: only transactions involving BillPay reversals.Shipping: only transactions |
||
124 | * involving UPS shipping fees.BalanceAffecting: only transactions that affect the account balance.ECheck: only transactions involving eCheckForcedPostTransaction: forced post transaction.NonReferencedRefunds: non-referenced refunds. |
||
125 | * - maxOccurs: 1 |
||
126 | * - minOccurs: 0 |
||
127 | * @var string |
||
128 | */ |
||
129 | public $TransactionClass; |
||
130 | /** |
||
131 | * The Amount |
||
132 | * Meta information extracted from the WSDL |
||
133 | * - documentation: Search by transaction amount OptionalYou must set the currencyID attribute to one of the three-character currency codes for any of the supported PayPal currencies. |
||
134 | * - maxOccurs: 1 |
||
135 | * - minOccurs: 0 |
||
136 | * @var \PayPal\StructType\BasicAmountType |
||
137 | */ |
||
138 | public $Amount; |
||
139 | /** |
||
140 | * The CurrencyCode |
||
141 | * Meta information extracted from the WSDL |
||
142 | * - documentation: Search by currency codeOptional |
||
143 | * - maxOccurs: 1 |
||
144 | * - minOccurs: 0 |
||
145 | * @var string |
||
146 | */ |
||
147 | public $CurrencyCode; |
||
148 | /** |
||
149 | * The Status |
||
150 | * Meta information extracted from the WSDL |
||
151 | * - documentation: Search by transaction status OptionalPending: The payment is pending. The specific reason the payment is pending is returned by the GetTransactionDetails APIPendingReason element. For more information, see PendingReason.Processing: |
||
152 | * The payment is being processed.Success: The payment has been completed and the funds have been added successfully to your account balance.Denied: You denied the payment. This happens only if the payment was previously pending.Reversed: A payment was |
||
153 | * reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. |
||
154 | * - maxOccurs: 1 |
||
155 | * - minOccurs: 0 |
||
156 | * @var string |
||
157 | */ |
||
158 | public $Status; |
||
159 | /** |
||
160 | * Constructor method for TransactionSearchRequestType |
||
161 | * @uses TransactionSearchRequestType::setStartDate() |
||
162 | * @uses TransactionSearchRequestType::setEndDate() |
||
163 | * @uses TransactionSearchRequestType::setPayer() |
||
164 | * @uses TransactionSearchRequestType::setReceiver() |
||
165 | * @uses TransactionSearchRequestType::setReceiptID() |
||
166 | * @uses TransactionSearchRequestType::setTransactionID() |
||
167 | * @uses TransactionSearchRequestType::setProfileID() |
||
168 | * @uses TransactionSearchRequestType::setPayerName() |
||
169 | * @uses TransactionSearchRequestType::setAuctionItemNumber() |
||
170 | * @uses TransactionSearchRequestType::setInvoiceID() |
||
171 | * @uses TransactionSearchRequestType::setCardNumber() |
||
172 | * @uses TransactionSearchRequestType::setTransactionClass() |
||
173 | * @uses TransactionSearchRequestType::setAmount() |
||
174 | * @uses TransactionSearchRequestType::setCurrencyCode() |
||
175 | * @uses TransactionSearchRequestType::setStatus() |
||
176 | * @param string $startDate |
||
177 | * @param string $endDate |
||
178 | * @param string $payer |
||
179 | * @param string $receiver |
||
180 | * @param string $receiptID |
||
181 | * @param string $transactionID |
||
182 | * @param string $profileID |
||
183 | * @param \PayPal\StructType\PersonNameType $payerName |
||
184 | * @param string $auctionItemNumber |
||
185 | * @param string $invoiceID |
||
186 | * @param string $cardNumber |
||
187 | * @param string $transactionClass |
||
188 | * @param \PayPal\StructType\BasicAmountType $amount |
||
189 | * @param string $currencyCode |
||
190 | * @param string $status |
||
191 | */ |
||
192 | public function __construct($startDate = null, $endDate = null, $payer = null, $receiver = null, $receiptID = null, $transactionID = null, $profileID = null, \PayPal\StructType\PersonNameType $payerName = null, $auctionItemNumber = null, $invoiceID = null, $cardNumber = null, $transactionClass = null, \PayPal\StructType\BasicAmountType $amount = null, $currencyCode = null, $status = null) |
||
193 | { |
||
194 | $this |
||
195 | ->setStartDate($startDate) |
||
196 | ->setEndDate($endDate) |
||
197 | ->setPayer($payer) |
||
198 | ->setReceiver($receiver) |
||
199 | ->setReceiptID($receiptID) |
||
200 | ->setTransactionID($transactionID) |
||
201 | ->setProfileID($profileID) |
||
202 | ->setPayerName($payerName) |
||
203 | ->setAuctionItemNumber($auctionItemNumber) |
||
204 | ->setInvoiceID($invoiceID) |
||
205 | ->setCardNumber($cardNumber) |
||
206 | ->setTransactionClass($transactionClass) |
||
207 | ->setAmount($amount) |
||
208 | ->setCurrencyCode($currencyCode) |
||
209 | ->setStatus($status); |
||
210 | } |
||
211 | /** |
||
212 | * Get StartDate value |
||
213 | * @return string |
||
214 | */ |
||
215 | public function getStartDate() |
||
216 | { |
||
217 | return $this->StartDate; |
||
218 | } |
||
219 | /** |
||
220 | * Set StartDate value |
||
221 | * @param string $startDate |
||
222 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
223 | */ |
||
224 | public function setStartDate($startDate = null) |
||
225 | { |
||
226 | // validation for constraint: string |
||
227 | if (!is_null($startDate) && !is_string($startDate)) { |
||
|
|||
228 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($startDate, true), gettype($startDate)), __LINE__); |
||
229 | } |
||
230 | $this->StartDate = $startDate; |
||
231 | return $this; |
||
232 | } |
||
233 | /** |
||
234 | * Get EndDate value |
||
235 | * @return string|null |
||
236 | */ |
||
237 | public function getEndDate() |
||
238 | { |
||
239 | return $this->EndDate; |
||
240 | } |
||
241 | /** |
||
242 | * Set EndDate value |
||
243 | * @param string $endDate |
||
244 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
245 | */ |
||
246 | public function setEndDate($endDate = null) |
||
247 | { |
||
248 | // validation for constraint: string |
||
249 | if (!is_null($endDate) && !is_string($endDate)) { |
||
250 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($endDate, true), gettype($endDate)), __LINE__); |
||
251 | } |
||
252 | $this->EndDate = $endDate; |
||
253 | return $this; |
||
254 | } |
||
255 | /** |
||
256 | * Get Payer value |
||
257 | * @return string|null |
||
258 | */ |
||
259 | public function getPayer() |
||
260 | { |
||
261 | return $this->Payer; |
||
262 | } |
||
263 | /** |
||
264 | * Set Payer value |
||
265 | * @param string $payer |
||
266 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
267 | */ |
||
268 | public function setPayer($payer = null) |
||
269 | { |
||
270 | // validation for constraint: string |
||
271 | if (!is_null($payer) && !is_string($payer)) { |
||
272 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($payer, true), gettype($payer)), __LINE__); |
||
273 | } |
||
274 | $this->Payer = $payer; |
||
275 | return $this; |
||
276 | } |
||
277 | /** |
||
278 | * Get Receiver value |
||
279 | * @return string|null |
||
280 | */ |
||
281 | public function getReceiver() |
||
282 | { |
||
283 | return $this->Receiver; |
||
284 | } |
||
285 | /** |
||
286 | * Set Receiver value |
||
287 | * @param string $receiver |
||
288 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
289 | */ |
||
290 | public function setReceiver($receiver = null) |
||
291 | { |
||
292 | // validation for constraint: string |
||
293 | if (!is_null($receiver) && !is_string($receiver)) { |
||
294 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($receiver, true), gettype($receiver)), __LINE__); |
||
295 | } |
||
296 | $this->Receiver = $receiver; |
||
297 | return $this; |
||
298 | } |
||
299 | /** |
||
300 | * Get ReceiptID value |
||
301 | * @return string|null |
||
302 | */ |
||
303 | public function getReceiptID() |
||
304 | { |
||
305 | return $this->ReceiptID; |
||
306 | } |
||
307 | /** |
||
308 | * Set ReceiptID value |
||
309 | * @param string $receiptID |
||
310 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
311 | */ |
||
312 | public function setReceiptID($receiptID = null) |
||
313 | { |
||
314 | // validation for constraint: string |
||
315 | if (!is_null($receiptID) && !is_string($receiptID)) { |
||
316 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($receiptID, true), gettype($receiptID)), __LINE__); |
||
317 | } |
||
318 | $this->ReceiptID = $receiptID; |
||
319 | return $this; |
||
320 | } |
||
321 | /** |
||
322 | * Get TransactionID value |
||
323 | * @return string|null |
||
324 | */ |
||
325 | public function getTransactionID() |
||
326 | { |
||
327 | return $this->TransactionID; |
||
328 | } |
||
329 | /** |
||
330 | * Set TransactionID value |
||
331 | * @param string $transactionID |
||
332 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
333 | */ |
||
334 | public function setTransactionID($transactionID = null) |
||
335 | { |
||
336 | // validation for constraint: string |
||
337 | if (!is_null($transactionID) && !is_string($transactionID)) { |
||
338 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($transactionID, true), gettype($transactionID)), __LINE__); |
||
339 | } |
||
340 | $this->TransactionID = $transactionID; |
||
341 | return $this; |
||
342 | } |
||
343 | /** |
||
344 | * Get ProfileID value |
||
345 | * @return string|null |
||
346 | */ |
||
347 | public function getProfileID() |
||
348 | { |
||
349 | return $this->ProfileID; |
||
350 | } |
||
351 | /** |
||
352 | * Set ProfileID value |
||
353 | * @param string $profileID |
||
354 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
355 | */ |
||
356 | public function setProfileID($profileID = null) |
||
364 | } |
||
365 | /** |
||
366 | * Get PayerName value |
||
367 | * @return \PayPal\StructType\PersonNameType|null |
||
368 | */ |
||
369 | public function getPayerName() |
||
370 | { |
||
371 | return $this->PayerName; |
||
372 | } |
||
373 | /** |
||
374 | * Set PayerName value |
||
375 | * @param \PayPal\StructType\PersonNameType $payerName |
||
376 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
377 | */ |
||
378 | public function setPayerName(\PayPal\StructType\PersonNameType $payerName = null) |
||
379 | { |
||
380 | $this->PayerName = $payerName; |
||
381 | return $this; |
||
382 | } |
||
383 | /** |
||
384 | * Get AuctionItemNumber value |
||
385 | * @return string|null |
||
386 | */ |
||
387 | public function getAuctionItemNumber() |
||
388 | { |
||
389 | return $this->AuctionItemNumber; |
||
390 | } |
||
391 | /** |
||
392 | * Set AuctionItemNumber value |
||
393 | * @param string $auctionItemNumber |
||
394 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
395 | */ |
||
396 | public function setAuctionItemNumber($auctionItemNumber = null) |
||
397 | { |
||
398 | // validation for constraint: string |
||
399 | if (!is_null($auctionItemNumber) && !is_string($auctionItemNumber)) { |
||
400 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($auctionItemNumber, true), gettype($auctionItemNumber)), __LINE__); |
||
401 | } |
||
402 | $this->AuctionItemNumber = $auctionItemNumber; |
||
403 | return $this; |
||
404 | } |
||
405 | /** |
||
406 | * Get InvoiceID value |
||
407 | * @return string|null |
||
408 | */ |
||
409 | public function getInvoiceID() |
||
410 | { |
||
411 | return $this->InvoiceID; |
||
412 | } |
||
413 | /** |
||
414 | * Set InvoiceID value |
||
415 | * @param string $invoiceID |
||
416 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
417 | */ |
||
418 | public function setInvoiceID($invoiceID = null) |
||
426 | } |
||
427 | /** |
||
428 | * Get CardNumber value |
||
429 | * @return string|null |
||
430 | */ |
||
431 | public function getCardNumber() |
||
434 | } |
||
435 | /** |
||
436 | * Set CardNumber value |
||
437 | * @param string $cardNumber |
||
438 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
439 | */ |
||
440 | public function setCardNumber($cardNumber = null) |
||
441 | { |
||
442 | // validation for constraint: string |
||
443 | if (!is_null($cardNumber) && !is_string($cardNumber)) { |
||
444 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cardNumber, true), gettype($cardNumber)), __LINE__); |
||
445 | } |
||
446 | $this->CardNumber = $cardNumber; |
||
447 | return $this; |
||
448 | } |
||
449 | /** |
||
450 | * Get TransactionClass value |
||
451 | * @return string|null |
||
452 | */ |
||
453 | public function getTransactionClass() |
||
454 | { |
||
455 | return $this->TransactionClass; |
||
456 | } |
||
457 | /** |
||
458 | * Set TransactionClass value |
||
459 | * @uses \PayPal\EnumType\PaymentTransactionClassCodeType::valueIsValid() |
||
460 | * @uses \PayPal\EnumType\PaymentTransactionClassCodeType::getValidValues() |
||
461 | * @throws \InvalidArgumentException |
||
462 | * @param string $transactionClass |
||
463 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
464 | */ |
||
465 | public function setTransactionClass($transactionClass = null) |
||
466 | { |
||
467 | // validation for constraint: enumeration |
||
468 | if (!\PayPal\EnumType\PaymentTransactionClassCodeType::valueIsValid($transactionClass)) { |
||
469 | throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PaymentTransactionClassCodeType', is_array($transactionClass) ? implode(', ', $transactionClass) : var_export($transactionClass, true), implode(', ', \PayPal\EnumType\PaymentTransactionClassCodeType::getValidValues())), __LINE__); |
||
470 | } |
||
471 | $this->TransactionClass = $transactionClass; |
||
472 | return $this; |
||
473 | } |
||
474 | /** |
||
475 | * Get Amount value |
||
476 | * @return \PayPal\StructType\BasicAmountType|null |
||
477 | */ |
||
478 | public function getAmount() |
||
479 | { |
||
480 | return $this->Amount; |
||
481 | } |
||
482 | /** |
||
483 | * Set Amount value |
||
484 | * @param \PayPal\StructType\BasicAmountType $amount |
||
485 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
486 | */ |
||
487 | public function setAmount(\PayPal\StructType\BasicAmountType $amount = null) |
||
488 | { |
||
489 | $this->Amount = $amount; |
||
490 | return $this; |
||
491 | } |
||
492 | /** |
||
493 | * Get CurrencyCode value |
||
494 | * @return string|null |
||
495 | */ |
||
496 | public function getCurrencyCode() |
||
497 | { |
||
498 | return $this->CurrencyCode; |
||
499 | } |
||
500 | /** |
||
501 | * Set CurrencyCode value |
||
502 | * @uses \PayPal\EnumType\CurrencyCodeType::valueIsValid() |
||
503 | * @uses \PayPal\EnumType\CurrencyCodeType::getValidValues() |
||
504 | * @throws \InvalidArgumentException |
||
505 | * @param string $currencyCode |
||
506 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
507 | */ |
||
508 | public function setCurrencyCode($currencyCode = null) |
||
509 | { |
||
510 | // validation for constraint: enumeration |
||
511 | if (!\PayPal\EnumType\CurrencyCodeType::valueIsValid($currencyCode)) { |
||
512 | throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\CurrencyCodeType', is_array($currencyCode) ? implode(', ', $currencyCode) : var_export($currencyCode, true), implode(', ', \PayPal\EnumType\CurrencyCodeType::getValidValues())), __LINE__); |
||
513 | } |
||
514 | $this->CurrencyCode = $currencyCode; |
||
515 | return $this; |
||
516 | } |
||
517 | /** |
||
518 | * Get Status value |
||
519 | * @return string|null |
||
520 | */ |
||
521 | public function getStatus() |
||
524 | } |
||
525 | /** |
||
526 | * Set Status value |
||
527 | * @uses \PayPal\EnumType\PaymentTransactionStatusCodeType::valueIsValid() |
||
528 | * @uses \PayPal\EnumType\PaymentTransactionStatusCodeType::getValidValues() |
||
529 | * @throws \InvalidArgumentException |
||
530 | * @param string $status |
||
531 | * @return \PayPal\StructType\TransactionSearchRequestType |
||
532 | */ |
||
533 | public function setStatus($status = null) |
||
534 | { |
||
535 | // validation for constraint: enumeration |
||
536 | if (!\PayPal\EnumType\PaymentTransactionStatusCodeType::valueIsValid($status)) { |
||
537 | throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\PaymentTransactionStatusCodeType', is_array($status) ? implode(', ', $status) : var_export($status, true), implode(', ', \PayPal\EnumType\PaymentTransactionStatusCodeType::getValidValues())), __LINE__); |
||
538 | } |
||
541 | } |
||
542 | } |
||
543 |