| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 73 | 27 | public function hydrateXml(\SimpleXMLElement $xml) |
|
| 74 | { |
||
| 75 | 27 | if (!isset($xml->PaymentNatureService)) { |
|
| 76 | 9 | return; |
|
| 77 | } |
||
| 78 | |||
| 79 | 18 | $this->name = (string)$xml->PaymentNatureService['name']; |
|
| 80 | 18 | $this->supportsRefunds = (string)$xml->PaymentNatureService->SupportsRefunds === 'true'; |
|
| 81 | 18 | $this->supportsRelease = (string)$xml->PaymentNatureService->SupportsRelease === 'true'; |
|
| 82 | 18 | $this->supportsMultipleCaptures = (string)$xml->PaymentNatureService->SupportsMultipleCaptures === 'true'; |
|
| 83 | 18 | $this->supportsMultipleRefunds = (string)$xml->PaymentNatureService->SupportsMultipleRefunds === 'true'; |
|
| 84 | 18 | } |
|
| 85 | } |
||
| 86 |