You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DocumentLabelDTO.php 636B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\DTO;
  3. readonly class DocumentLabelDTO
  4. {
  5. public function __construct(
  6. public string $title,
  7. public string $number,
  8. public string $referenceNumber,
  9. public string $date,
  10. public string $dueDate,
  11. public string $amountDue,
  12. ) {}
  13. public function toArray(): array
  14. {
  15. return [
  16. 'title' => $this->title,
  17. 'number' => $this->number,
  18. 'reference_number' => $this->referenceNumber,
  19. 'date' => $this->date,
  20. 'due_date' => $this->dueDate,
  21. 'amount_due' => $this->amountDue,
  22. ];
  23. }
  24. }