| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 35 | 	public static function parse( SimpleXMLElement $xml ) { | 
            ||
| 36 | $merchant = new Merchant();  | 
            ||
| 37 | |||
| 38 | 		if ( isset( $xml->merchantid ) ) { | 
            ||
| 39 | $merchant->merchant_id = Security::filter( $xml->merchantid );  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | 		if ( isset( $xml->payments->payment ) ) { | 
            ||
| 43 | $merchant->payments = (array) $xml->payments->payment;  | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 | return $merchant;  | 
            ||
| 47 | }  | 
            ||
| 49 |