| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 2 | 
| Changes | 2 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php  | 
            ||
| 56 | 2 | public function asDom(\DOMDocument $doc)  | 
            |
| 57 |     { | 
            ||
| 58 | 2 |         $root = $doc->createElement('PstlAdr'); | 
            |
| 59 | |||
| 60 | 2 |         $root->appendChild($doc->createElement('StrtNm', $this->street)); | 
            |
| 61 | 2 |         if (!empty($this->buildingNo)) { | 
            |
| 62 | 2 |             $root->appendChild($doc->createElement('BldgNb', $this->buildingNo)); | 
            |
| 63 | 2 | }  | 
            |
| 64 | 2 |         $root->appendChild($doc->createElement('PstCd', $this->postCode)); | 
            |
| 65 | 2 |         $root->appendChild($doc->createElement('TwnNm', $this->town)); | 
            |
| 66 | 2 |         $root->appendChild($doc->createElement('Ctry', $this->country)); | 
            |
| 67 | |||
| 68 | 2 | return $root;  | 
            |
| 69 | }  | 
            ||
| 70 | }  | 
            ||
| 71 |