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

81 lines
1.4 KiB
PHP

<?php
declare(strict_types=1);
namespace KupShop\PreordersBundle\Dto;
use KupShop\ComponentsBundle\Contracts\UserInfoInterface;
class UserInfo implements UserInfoInterface
{
public function __construct(
private readonly \User $user,
) {
}
public function getName(): string
{
return $this->user->name;
}
public function getSurname(): string
{
return $this->user->surname;
}
public function getPhone(): string
{
return $this->user->phone;
}
public function getEmail(): string
{
return $this->user->email;
}
public function getCountry(): ?string
{
return $this->user->country;
}
public function getStreet(): string
{
return $this->user->street;
}
public function getCustomAddress(): ?string
{
return $this->user->custom_address;
}
public function getCity(): string
{
return $this->user->city;
}
public function getZip(): string
{
return $this->user->zip;
}
public function getState(): string
{
return $this->user->state;
}
public function getIco(): ?string
{
return $this->user->ico ?? null;
}
public function getDic(): ?string
{
return $this->user->dic ?? null;
}
public function getFirm(): ?string
{
return $this->user->firm;
}
}