| @@ 117-128 (lines=12) @@ | ||
| 114 | ) |
|
| 115 | ); |
|
| 116 | } |
|
| 117 | if ($this->getIban() !== null) { |
|
| 118 | $tagName = 'iban'; |
|
| 119 | if ($prefix !== null) { |
|
| 120 | $tagName = $prefix . ':' . $tagName; |
|
| 121 | } |
|
| 122 | $cod->appendChild( |
|
| 123 | $document->createElement( |
|
| 124 | $tagName, |
|
| 125 | $this->getIban() |
|
| 126 | ) |
|
| 127 | ); |
|
| 128 | } |
|
| 129 | if ($this->getBic() !== null) { |
|
| 130 | $tagName = 'bic'; |
|
| 131 | if ($prefix !== null) { |
|
| @@ 129-140 (lines=12) @@ | ||
| 126 | ) |
|
| 127 | ); |
|
| 128 | } |
|
| 129 | if ($this->getBic() !== null) { |
|
| 130 | $tagName = 'bic'; |
|
| 131 | if ($prefix !== null) { |
|
| 132 | $tagName = $prefix . ':' . $tagName; |
|
| 133 | } |
|
| 134 | $cod->appendChild( |
|
| 135 | $document->createElement( |
|
| 136 | $tagName, |
|
| 137 | $this->getBic() |
|
| 138 | ) |
|
| 139 | ); |
|
| 140 | } |
|
| 141 | ||
| 142 | return $cod; |
|
| 143 | } |
|
| @@ 202-213 (lines=12) @@ | ||
| 199 | $messaging = $document->createElement($tagName); |
|
| 200 | $messaging->setAttribute('language', $this->getLanguage()); |
|
| 201 | ||
| 202 | if ($this->getEmailAddress() !== null) { |
|
| 203 | $tagName = 'emailAddress'; |
|
| 204 | if ($prefix !== null) { |
|
| 205 | $tagName = $prefix . ':' . $tagName; |
|
| 206 | } |
|
| 207 | $messaging->appendChild( |
|
| 208 | $document->createElement( |
|
| 209 | $tagName, |
|
| 210 | $this->getEmailAddress() |
|
| 211 | ) |
|
| 212 | ); |
|
| 213 | } |
|
| 214 | if ($this->getMobilePhone() !== null) { |
|
| 215 | $tagName = 'mobilePhone'; |
|
| 216 | if ($prefix !== null) { |
|
| @@ 214-225 (lines=12) @@ | ||
| 211 | ) |
|
| 212 | ); |
|
| 213 | } |
|
| 214 | if ($this->getMobilePhone() !== null) { |
|
| 215 | $tagName = 'mobilePhone'; |
|
| 216 | if ($prefix !== null) { |
|
| 217 | $tagName = $prefix . ':' . $tagName; |
|
| 218 | } |
|
| 219 | $messaging->appendChild( |
|
| 220 | $document->createElement( |
|
| 221 | $tagName, |
|
| 222 | $this->getMobilePhone() |
|
| 223 | ) |
|
| 224 | ); |
|
| 225 | } |
|
| 226 | ||
| 227 | return $messaging; |
|
| 228 | } |
|
| @@ 83-94 (lines=12) @@ | ||
| 80 | ||
| 81 | $line = $document->createElement($tagName); |
|
| 82 | ||
| 83 | if ($this->getText() !== null) { |
|
| 84 | $tagName = 'text'; |
|
| 85 | if ($prefix !== null) { |
|
| 86 | $tagName = $prefix . ':' . $tagName; |
|
| 87 | } |
|
| 88 | $line->appendChild( |
|
| 89 | $document->createElement( |
|
| 90 | $tagName, |
|
| 91 | $this->getText() |
|
| 92 | ) |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | if ($this->getNumberOfItems() !== null) { |
|
| 96 | $tagName = 'nbOfItems'; |
|
| 97 | if ($prefix !== null) { |
|