Files
kupshop/bundles/KupShop/ComponentsBundle/Dto/OrderDeliveryUserInfo.php
2025-08-02 16:30:27 +02:00

81 lines
1.5 KiB
PHP

<?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;
}
}