feat: ajout d'une route GetMangaByIdHandler.php et fix de la SearchBar.vue

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-03-25 22:44:26 +01:00
parent ed0a075a6c
commit d9e935f7de
26 changed files with 519 additions and 79 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Domain\Manga\Application\Response;
readonly class SearchLocalMangaResponse
{
/**
* @param MangaSearchItem[] $items
*/
public function __construct(
public array $items,
public int $total,
public int $page,
public int $limit
) {}
public function hasNextPage(): bool
{
return $this->total > ($this->page * $this->limit);
}
public function hasPreviousPage(): bool
{
return $this->page > 1;
}
}