<?php

namespace App\Domain\Manga\Infrastructure\ApiPlatform\Dto;

use ApiPlatform\Metadata\ApiProperty;
use DateTimeImmutable;

readonly class MangaListItem
{
    public function __construct(
        #[ApiProperty(identifier: true)]
        public string $id,
        public string $title,
        public string $description,
        public string $slug,
        public ?string $imageUrl,
        public ?string $thumbnailUrl,
        public string $author,
        public int $publicationYear,
        public array $genres,
        public string $status,
        public ?float $rating,
        public DateTimeImmutable $createdAt,
        public bool $monitored = false,
        public int $chaptersTotal = 0,
        public int $chaptersScraped = 0,
    ) {
    }
}
