feat: SearchManga endpoint + tests

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-10 21:33:34 +01:00
parent 6667cc224b
commit ae0eac3197
25 changed files with 1022 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Domain\Manga\Application\Response;
readonly class MangaSearchItem
{
public function __construct(
public string $externalId,
public string $title,
public string $slug,
public string $description,
public string $author,
public int $publicationYear,
public array $genres,
public string $status,
public ?string $imageUrl,
public ?float $rating
) {}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Domain\Manga\Application\Response;
readonly class MangaSearchResponse
{
/** @var MangaSearchItem[] */
public array $items;
/**
* @param MangaSearchItem[] $items
*/
public function __construct(array $items)
{
$this->items = $items;
}
}