feat(recipes): implement GetBoPaginatedRecipesQuery and input/output classes feat(requests): add table parameter resolution for products and recipes
28 lines
794 B
PHP
28 lines
794 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Queries\Recipes;
|
|
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
|
|
|
final readonly class GetBoPaginatedRecipesQueryOutput
|
|
{
|
|
/**
|
|
* @param LengthAwarePaginator<int,\App\Models\Recipe> $paginatedRecipes
|
|
* @param array<string, mixed> $categories
|
|
* @param array<string, mixed> $consumptionTimes
|
|
* @param array<string, mixed> $inspirations
|
|
* @param array<string, mixed> $seasons
|
|
*/
|
|
public function __construct(
|
|
public LengthAwarePaginator $paginatedRecipes,
|
|
public ?string $search,
|
|
public string $searchFields,
|
|
public array $categories,
|
|
public array $consumptionTimes,
|
|
public array $inspirations,
|
|
public array $seasons,
|
|
) {
|
|
}
|
|
}
|