40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
|
|
<?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,
|
||
|
|
) {
|
||
|
|
}
|
||
|
|
}
|