src/Dto/Director/DirectorDto.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Slivki\Dto\Director;
  4. use DateTimeImmutable;
  5. use Slivki\Dto\InfoPage\InfoPageDto;
  6. final class DirectorDto
  7. {
  8.     private int $id;
  9.     private string $name;
  10.     private ?string $legalEntity;
  11.     private ?string $legalEmail;
  12.     private ?string $legalAddress;
  13.     private ?string $taxId;
  14.     private ?string $registrationAuthority;
  15.     private ?string $phoneNumber;
  16.     private ?string $workingHours;
  17.     private ?string $footerInfo;
  18.     private ?DateTimeImmutable $taxRegistrationDate;
  19.     private ?DateTimeImmutable $getTradeRegistrationDate;
  20.     /**
  21.      * @var array<InfoPageDto>
  22.      */
  23.     private array $infoPages;
  24.     public function __construct(
  25.         int $id,
  26.         string $name,
  27.         ?string $legalEntity,
  28.         ?string $legalEmail,
  29.         ?string $legalAddress,
  30.         ?string $taxId,
  31.         ?string $registrationAuthority,
  32.         ?string $phoneNumber,
  33.         ?string $workingHours,
  34.         ?string $footerInfo,
  35.         ?DateTimeImmutable $taxRegistrationDate,
  36.         ?DateTimeImmutable $getTradeRegistrationDate,
  37.         array $infoPages
  38.     ) {
  39.         $this->id $id;
  40.         $this->name $name;
  41.         $this->legalEntity $legalEntity;
  42.         $this->legalEmail $legalEmail;
  43.         $this->legalAddress $legalAddress;
  44.         $this->taxId $taxId;
  45.         $this->registrationAuthority $registrationAuthority;
  46.         $this->phoneNumber $phoneNumber;
  47.         $this->workingHours $workingHours;
  48.         $this->footerInfo $footerInfo;
  49.         $this->taxRegistrationDate $taxRegistrationDate;
  50.         $this->getTradeRegistrationDate $getTradeRegistrationDate;
  51.         $this->infoPages $infoPages;
  52.     }
  53.     public function getId(): int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getName(): string
  58.     {
  59.         return $this->name;
  60.     }
  61.     public function getLegalEntity(): ?string
  62.     {
  63.         return $this->legalEntity;
  64.     }
  65.     public function getLegalEmail(): ?string
  66.     {
  67.         return $this->legalEmail;
  68.     }
  69.     public function getLegalAddress(): ?string
  70.     {
  71.         return $this->legalAddress;
  72.     }
  73.     public function getTaxId(): ?string
  74.     {
  75.         return $this->taxId;
  76.     }
  77.     public function getRegistrationAuthority(): ?string
  78.     {
  79.         return $this->registrationAuthority;
  80.     }
  81.     public function getPhoneNumber(): ?string
  82.     {
  83.         return $this->phoneNumber;
  84.     }
  85.     public function getWorkingHours(): ?string
  86.     {
  87.         return $this->workingHours;
  88.     }
  89.     public function getFooterInfo(): ?string
  90.     {
  91.         return $this->footerInfo;
  92.     }
  93.     public function getTaxRegistrationDate(): ?DateTimeImmutable
  94.     {
  95.         return $this->taxRegistrationDate;
  96.     }
  97.     public function getGetTradeRegistrationDate(): ?DateTimeImmutable
  98.     {
  99.         return $this->getTradeRegistrationDate;
  100.     }
  101.     public function getInfoPages(): array
  102.     {
  103.         return $this->infoPages;
  104.     }
  105. }