src/Entity/AddressArtifactFormat.php 1 location
|
@@ 42-47 (lines=6) @@
|
| 39 |
|
|
| 40 |
|
$node = $document->createElement('AddressArtifactFormat'); |
| 41 |
|
|
| 42 |
|
for ($i = 1; $i <= 3; $i++) { |
| 43 |
|
$line = $this->{'getPoliticalDivision' . $i}(); |
| 44 |
|
if ($line) { |
| 45 |
|
$node->appendChild($document->createElement('PoliticalDivision' . $i, $line)); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
if ($this->getCountryCode()) { |
| 50 |
|
$node->appendChild($document->createElement('CountryCode', $this->getCountryCode())); |
src/Entity/AddressKeyFormat.php 1 location
|
@@ 69-74 (lines=6) @@
|
| 66 |
|
} |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
for ($i = 1; $i <= 3; $i++) { |
| 70 |
|
$line = $this->{'getPoliticalDivision' . $i}(); |
| 71 |
|
if ($line) { |
| 72 |
|
$node->appendChild($document->createElement('PoliticalDivision' . $i, $line)); |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
if ($this->getPostcodePrimaryLow()) { |
| 77 |
|
$node->appendChild($document->createElement('PostcodePrimaryLow', $this->getPostcodePrimaryLow())); |