| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public static function parse( SimpleXMLElement $xml ) { |
||
| 34 | $message = new GatewaysResponseMessage(); |
||
| 35 | |||
| 36 | $message->gateways = array(); |
||
| 37 | |||
| 38 | foreach ( $xml->gateways->gateway as $gateway ) { |
||
| 39 | $id = Security::filter( $gateway->id ); |
||
| 40 | $description = Security::filter( $gateway->description ); |
||
| 41 | |||
| 42 | $message->gateways[ $id ] = $description; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $message; |
||
| 46 | } |
||
| 48 |