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