WIP Impelement more stuff

This commit is contained in:
Björn Fromme committed 2023-10-04 15:10:16 +02:00
1 parent dec8feedf2
commit cc1ab396af
35 files changed
+928 -177

No files matched your search

+3 -3
View File
@@ -176,15 +176,15 @@ class ResponseParser
$countries = [];
foreach ($xml->xpath('laender/land') as $item) {
$id = (int) $item->attributes()['id'];
$token = (string) $item->attributes()['kuerzel'];
$country = new Country();
$country
->setId($id)
->setId((int) $item->attributes()['id'])
->setName((string) $item->attributes()['bezeichnung'])
->setToken((string) $item->attributes()['kuerzel'])
->setNationality((string) $item->attributes()['nationalitaet'])
;
$countries[$id] = $country;
$countries[$token] = $country;
}
$response = new BaseDataResponse();