wp-pay-gateways /
multisafepay
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\MultiSafepay\XML; |
||
| 4 | |||
| 5 | use Pronamic\WordPress\Pay\Core\XML\Security; |
||
| 6 | use SimpleXMLElement; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Title: MultiSafepay Connect XML redirect transaction response message |
||
| 10 | * Description: |
||
| 11 | * Copyright: 2005-2021 Pronamic |
||
| 12 | * Company: Pronamic |
||
| 13 | * |
||
| 14 | * @author Remco Tolsma |
||
| 15 | * @version 2.0.2 |
||
| 16 | * @since 1.0.0 |
||
| 17 | */ |
||
| 18 | class RedirectTransactionResponseMessage { |
||
| 19 | /** |
||
| 20 | * Result |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $result; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Transaction |
||
| 28 | * |
||
| 29 | * @var DirectTransactionResponseMessage |
||
| 30 | */ |
||
| 31 | public $transaction; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Parse the specified XML element into an iDEAL transaction object |
||
| 35 | * |
||
| 36 | * @param SimpleXMLElement $xml |
||
| 37 | * |
||
| 38 | * @return RedirectTransactionResponseMessage |
||
| 39 | */ |
||
| 40 | 1 | public static function parse( SimpleXMLElement $xml ) { |
|
| 41 | 1 | $message = new RedirectTransactionResponseMessage(); |
|
| 42 | |||
| 43 | 1 | $message->result = Security::filter( $xml['result'] ); |
|
| 44 | 1 | $message->transaction = TransactionParser::parse( $xml->transaction ); |
|
|
0 ignored issues
–
show
|
|||
| 45 | |||
| 46 | 1 | return $message; |
|
| 47 | } |
||
| 48 | } |
||
| 49 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..