feat(recipes): implement GetBoPaginatedRecipesQuery and input/output classes feat(requests): add table parameter resolution for products and recipes
21 lines
517 B
PHP
21 lines
517 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Queries\Recipes;
|
|
|
|
use App\Contracts\QueryInput;
|
|
use Domain\Models\ValueObjects\Pagination;
|
|
use SortDirection;
|
|
|
|
final readonly class GetBoPaginatedRecipesQueryInput implements QueryInput
|
|
{
|
|
public function __construct(
|
|
public Pagination $pagination,
|
|
public ?string $search = null,
|
|
public string $sortCol = 'name',
|
|
public SortDirection $sortDirection = SortDirection::Ascending,
|
|
public bool $isTrash = false,
|
|
) {
|
|
}
|
|
}
|