29 lines
732 B
PHP
29 lines
732 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Queries\Products;
|
||
|
|
|
||
|
|
use App\Dto\ProductDto;
|
||
|
|
use Domain\Enums\ProductBrand;
|
||
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
||
|
|
use Illuminate\Support\Collection;
|
||
|
|
|
||
|
|
final readonly class GetBoPaginatedProductsQueryOutput
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param LengthAwarePaginator<int, ProductDto> $products
|
||
|
|
* @param list<ProductBrand> $brands
|
||
|
|
* @param Collection<int|string, mixed> $ranges
|
||
|
|
* @param Collection<int|string, mixed> $tags
|
||
|
|
*/
|
||
|
|
public function __construct(
|
||
|
|
public LengthAwarePaginator $products,
|
||
|
|
public array $brands,
|
||
|
|
public Collection $ranges,
|
||
|
|
public Collection $tags,
|
||
|
|
public string $searchFields,
|
||
|
|
) {
|
||
|
|
}
|
||
|
|
}
|