Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

31 linhas
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.