|
2 | 2 |
|
3 | 3 | namespace Loki\Components\Location; |
4 | 4 |
|
5 | | -class Address |
| 5 | +use Magento\Framework\DataObject; |
| 6 | + |
| 7 | +class Address extends DataObject |
6 | 8 | { |
7 | 9 | public function __construct( |
8 | 10 | private readonly AddressRenderer $addressRenderer, |
9 | 11 | private readonly string $street, |
10 | 12 | private readonly string $houseNumber, |
| 13 | + private readonly string $houseNumberAddition, |
11 | 14 | private readonly string $postcode, |
12 | 15 | private readonly string $city, |
13 | 16 | private readonly string $countryId, |
14 | 17 | private readonly ?float $latitude = null, |
15 | 18 | private readonly ?float $longitude = null, |
| 19 | + private readonly string $phone = '', |
16 | 20 | private readonly string $comment = '', |
| 21 | + private readonly string $company = '', |
| 22 | + array $data = [] |
17 | 23 | ) { |
| 24 | + parent::__construct($data); |
18 | 25 | } |
19 | 26 |
|
20 | 27 | public function getStreet(): string |
@@ -61,4 +68,19 @@ public function getInnerHtml(): string |
61 | 68 | { |
62 | 69 | return $this->addressRenderer->getHtml($this); |
63 | 70 | } |
| 71 | + |
| 72 | + public function getCompany(): string |
| 73 | + { |
| 74 | + return $this->company; |
| 75 | + } |
| 76 | + |
| 77 | + public function getHouseNumberAddition(): string |
| 78 | + { |
| 79 | + return $this->houseNumberAddition; |
| 80 | + } |
| 81 | + |
| 82 | + public function getPhone(): string |
| 83 | + { |
| 84 | + return $this->phone; |
| 85 | + } |
64 | 86 | } |
0 commit comments