2026-09-30 17:22:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Dto;
|
|
|
|
|
|
|
|
|
|
use Domain\Enums\ProductBrand;
|
|
|
|
|
use Domain\Enums\SellUnit;
|
|
|
|
|
use Domain\Enums\TaxRate;
|
|
|
|
|
use Domain\Enums\Units\InvoicingUnit;
|
|
|
|
|
use Domain\Enums\Units\OrderUnit;
|
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
|
|
final readonly class ProductFormDataDto
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @param list<ProductBrand> $brands
|
|
|
|
|
* @param list<TaxRate> $taxes
|
|
|
|
|
* @param list<InvoicingUnit> $invoicingUnits
|
|
|
|
|
* @param list<SellUnit> $sellUnits
|
|
|
|
|
* @param list<OrderUnit> $orderUnits
|
|
|
|
|
* @param Collection<int|string, mixed> $ranges
|
|
|
|
|
* @param Collection<int, TagDto> $tags
|
|
|
|
|
* @param Collection<int, ProductDto> $existingProds
|
|
|
|
|
* @param Collection<int, ProductDto> $selectedProds
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
public array $brands,
|
|
|
|
|
public array $taxes,
|
|
|
|
|
public array $invoicingUnits,
|
|
|
|
|
public array $sellUnits,
|
|
|
|
|
public array $orderUnits,
|
|
|
|
|
public Collection $ranges,
|
|
|
|
|
public Collection $tags,
|
|
|
|
|
public Collection $existingProds,
|
|
|
|
|
public Collection $selectedProds,
|
2026-11-14 16:25:59 +01:00
|
|
|
public ?ProductDto $product = null,
|
2026-09-30 17:22:41 +02:00
|
|
|
) {
|
|
|
|
|
}
|
|
|
|
|
}
|