wip: initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class Address
|
||||
{
|
||||
public ?string $street = null;
|
||||
public ?string $postCode = null;
|
||||
public ?string $city = null;
|
||||
public ?string $district = null;
|
||||
public ?string $country = null;
|
||||
|
||||
public function toPayload(): array
|
||||
{
|
||||
return [
|
||||
'strasse' => $this->street,
|
||||
'plz' => $this->postCode,
|
||||
'ort' => $this->city,
|
||||
'ortsteil' => $this->district,
|
||||
'land' => $this->country,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user