34 lines
929 B
PHP
34 lines
929 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Queries\Products;
|
||
|
|
|
||
|
|
use App\Dto\DiscountDto;
|
||
|
|
use App\Dto\RangeDto;
|
||
|
|
use App\Dto\TagDto;
|
||
|
|
use App\Models\Product;
|
||
|
|
use Domain\Enums\ProductBrand;
|
||
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
||
|
|
use Illuminate\Support\Collection;
|
||
|
|
|
||
|
|
final readonly class GetFoProductIndexPageQueryOutput
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param LengthAwarePaginator<int, Product> $paginatedProducts
|
||
|
|
* @param Collection<int, ProductBrand> $brandList
|
||
|
|
* @param Collection<int, RangeDto> $rangeList
|
||
|
|
* @param Collection<int, TagDto> $tagList
|
||
|
|
* @param Collection<int, DiscountDto> $discountList
|
||
|
|
*/
|
||
|
|
public function __construct(
|
||
|
|
public LengthAwarePaginator $paginatedProducts,
|
||
|
|
public Collection $brandList,
|
||
|
|
public Collection $rangeList,
|
||
|
|
public Collection $tagList,
|
||
|
|
public Collection $discountList,
|
||
|
|
public int $perPage,
|
||
|
|
) {
|
||
|
|
}
|
||
|
|
}
|