Files
Mangarr/src/Domain/Manga/Application/Response/ChapterResponse.php
ext.jeremy.guillot@maxicoffee.domains fb8f64ee59 feat(manga): regrouper les chapitres d'un volume importé dans la liste API
Les chapitres partageant le même pagesDirectory non-null et le même volume
non-null (import CBZ en bloc) sont fusionnés en un seul item isVolumeGroup=true
côté Application, avec volumeChaptersRange et volumeChapterCount. Le frontend
affiche "Vol. X — Chapitres Y-Z" à la place de N lignes identiques.
2026-03-15 19:21:02 +01:00

21 lines
502 B
PHP

<?php
namespace App\Domain\Manga\Application\Response;
readonly class ChapterResponse
{
public function __construct(
public string $id,
public float $number,
public ?string $title,
public ?int $volume,
public bool $isVisible,
public ?string $pagesDirectory,
public string $createdAt,
public bool $isVolumeGroup = false,
public ?string $volumeChaptersRange = null,
public int $volumeChapterCount = 0,
) {
}
}