| Conditions | 7 |
| Paths | 64 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 7 |
| Changes | 0 | ||
| 1 | <?php |
||
| 88 | 9 | public function hydrateAddress(\SimpleXMLElement $xml) |
|
| 89 | { |
||
| 90 | 9 | $this->firstName = isset($xml->Firstname) ? (string)$xml->Firstname : null; |
|
| 91 | 9 | $this->lastName = isset($xml->Lastname) ? (string)$xml->Lastname : null; |
|
| 92 | 9 | $this->address = isset($xml->Address) ? (string)$xml->Address : null; |
|
| 93 | 9 | $this->city = isset($xml->City) ? (string)$xml->City : null; |
|
| 94 | 9 | $this->postalCode = isset($xml->PostalCode) ? (string)$xml->PostalCode : null; |
|
| 95 | 9 | $this->country = isset($xml->Country) ? (string)$xml->Country : null; |
|
| 96 | 9 | } |
|
| 97 | } |
||
| 98 |