@@ 69-75 (lines=7) @@ | ||
66 | $this->title = (string)$this->xmlDoc->Title; |
|
67 | $this->country = (string)$this->xmlDoc->Country; |
|
68 | ||
69 | if (isset($this->xmlDoc->Natures) && |
|
70 | isset($this->xmlDoc->Natures->Nature) && |
|
71 | !empty($this->xmlDoc->Natures->Nature)) { |
|
72 | foreach ($this->xmlDoc->Natures->Nature as $natureXml) { |
|
73 | $this->natures[] = new Nature($this->getOriginalResponse(), $natureXml); |
|
74 | } |
|
75 | } |
|
76 | ||
77 | if (isset($this->xmlDoc->Currencies) && |
|
78 | isset($this->xmlDoc->Currencies->Currency) && |
|
@@ 77-83 (lines=7) @@ | ||
74 | } |
|
75 | } |
|
76 | ||
77 | if (isset($this->xmlDoc->Currencies) && |
|
78 | isset($this->xmlDoc->Currencies->Currency) && |
|
79 | !empty($this->xmlDoc->Currencies->Currency)) { |
|
80 | foreach ($this->xmlDoc->Currencies->Currency as $currencyXml) { |
|
81 | $this->currencies[] = new Currency($this->getOriginalResponse(), $currencyXml); |
|
82 | } |
|
83 | } |
|
84 | } |
|
85 | } |
|
86 |
@@ 451-457 (lines=7) @@ | ||
448 | ||
449 | // populating payment info objects |
|
450 | $this->paymentInfos = []; |
|
451 | if (isset($this->xmlDoc->PaymentInfos) && |
|
452 | isset($this->xmlDoc->PaymentInfos->PaymentInfo) && |
|
453 | !empty($this->xmlDoc->PaymentInfos->PaymentInfo)) { |
|
454 | foreach ($this->xmlDoc->PaymentInfos->PaymentInfo as $paymentInfo) { |
|
455 | $this->paymentInfos[] = new PaymentInfo($this->getOriginalResponse(), $paymentInfo); |
|
456 | } |
|
457 | } |
|
458 | ||
459 | // populating customer info object |
|
460 | $this->customerInfo = new Transaction\CustomerInfo($this->getOriginalResponse(), $this->xmlDoc->CustomerInfo); |
|
@@ 464-473 (lines=10) @@ | ||
461 | ||
462 | // populating reconciliation identifiers |
|
463 | $this->reconciliationIdentifiers = []; |
|
464 | if (isset($this->xmlDoc->ReconciliationIdentifiers) && |
|
465 | isset($this->xmlDoc->ReconciliationIdentifiers->ReconciliationIdentifier) && |
|
466 | !empty($this->xmlDoc->ReconciliationIdentifiers->ReconciliationIdentifier)) { |
|
467 | foreach ($this->xmlDoc->ReconciliationIdentifiers->ReconciliationIdentifier as $reconciliationIdentifier) { |
|
468 | $this->reconciliationIdentifiers[] = new ReconciliationIdentifier( |
|
469 | $this->getOriginalResponse(), |
|
470 | $reconciliationIdentifier |
|
471 | ); |
|
472 | } |
|
473 | } |
|
474 | } |
|
475 | } |
|
476 |