| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public static function parse( SimpleXMLElement $xml, $issuer = null ) { |
||
| 35 | if ( ! $issuer instanceof Issuer ) { |
||
| 36 | $issuer = new Issuer(); |
||
| 37 | } |
||
| 38 | |||
| 39 | $issuer->set_id( Security::filter( $xml->issuerID ) ); |
||
| 40 | $issuer->set_name( Security::filter( $xml->issuerName ) ); |
||
| 41 | $issuer->set_authentication_url( Security::filter( $xml->issuerAuthenticationURL ) ); |
||
| 42 | |||
| 43 | return $issuer; |
||
| 44 | } |
||
| 46 |