first commit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KupShop\ComponentsBundle\Dto;
|
||||
|
||||
use KupShop\ComponentsBundle\Contracts\UserInfoInterface;
|
||||
|
||||
class OrderDeliveryUserInfo implements UserInfoInterface
|
||||
{
|
||||
public function __construct(
|
||||
private readonly \Order $order,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->order->delivery_name;
|
||||
}
|
||||
|
||||
public function getSurname(): string
|
||||
{
|
||||
return $this->order->delivery_surname;
|
||||
}
|
||||
|
||||
public function getPhone(): string
|
||||
{
|
||||
return $this->order->delivery_phone;
|
||||
}
|
||||
|
||||
public function getEmail(): string
|
||||
{
|
||||
return $this->order->delivery_email;
|
||||
}
|
||||
|
||||
public function getCountry(): string
|
||||
{
|
||||
return $this->order->delivery_country;
|
||||
}
|
||||
|
||||
public function getStreet(): string
|
||||
{
|
||||
return $this->order->delivery_street;
|
||||
}
|
||||
|
||||
public function getCustomAddress(): ?string
|
||||
{
|
||||
return $this->order->delivery_custom_address;
|
||||
}
|
||||
|
||||
public function getCity(): string
|
||||
{
|
||||
return $this->order->delivery_city;
|
||||
}
|
||||
|
||||
public function getZip(): string
|
||||
{
|
||||
return $this->order->delivery_zip;
|
||||
}
|
||||
|
||||
public function getState(): string
|
||||
{
|
||||
return $this->order->delivery_state;
|
||||
}
|
||||
|
||||
public function getIco(): ?string
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getDic(): ?string
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getFirm(): ?string
|
||||
{
|
||||
return $this->order->delivery_firm;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user