<?php

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

use ApiPlatform\Metadata\ApiProperty;

readonly class ChapterListItem
{
    public function __construct(
        #[ApiProperty(identifier: true)]
        public string $id,
        public float $number,
        public ?string $title,
        public ?int $volume,
        public bool $isVisible,
        public bool $isAvailable,
        public string $createdAt,
        public bool $isVolumeGroup = false,
        public ?string $volumeChaptersRange = null,
        public int $volumeChapterCount = 0,
    ) {
    }
}
