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.

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\DTO;
  3. readonly class LineItemPreviewDTO extends LineItemDTO
  4. {
  5. public static function fakeItems(): array
  6. {
  7. return [
  8. new self(
  9. name: 'Professional Services',
  10. description: 'Consulting and strategic planning',
  11. quantity: 2,
  12. unitPrice: self::formatToMoney(15000, null), // $150.00
  13. subtotal: self::formatToMoney(30000, null), // $300.00
  14. ),
  15. new self(
  16. name: 'Software License',
  17. description: 'Annual subscription and support',
  18. quantity: 3,
  19. unitPrice: self::formatToMoney(20000, null), // $200.00
  20. subtotal: self::formatToMoney(60000, null), // $600.00
  21. ),
  22. new self(
  23. name: 'Training Session',
  24. description: 'Team onboarding and documentation',
  25. quantity: 1,
  26. unitPrice: self::formatToMoney(10000, null), // $100.00
  27. subtotal: self::formatToMoney(10000, null), // $100.00
  28. ),
  29. ];
  30. }
  31. }