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.

31 line
758B

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\ViewModels;
  4. class CustomerViewModel
  5. {
  6. public string $title = 'Customers';
  7. public bool $saved = false;
  8. public bool $deleted = false;
  9. /** @var array{customer_type_id: int|string, attribute_values: array<string, string>} */
  10. public array $form = [
  11. 'customer_type_id' => 0,
  12. 'attribute_values' => [],
  13. ];
  14. /** @var array<string, list<string>> */
  15. public array $errors = [];
  16. /** @var array<string, mixed>|null */
  17. public ?array $customer = null;
  18. /**
  19. * All customer types with attributes decoded.
  20. * @var list<array{id: int, name: string, attributes: list<array{name: string, type: string}>}>
  21. */
  22. public array $customerTypes = [];
  23. }

Powered by TurnKey Linux.