<?php

namespace Services\dtos;
use Services\dtos\PostDto;

class PostDetailDto
{
    public readonly string $title;
    public readonly ?ImageDto $image;
    public readonly string $link;
    public readonly string $categories;
    public readonly string $category_link;
    public readonly string $category_name;
    public readonly string $time;
    public readonly string $content;
    public readonly string $auther_id;
    public readonly string $auther_name;
    public readonly string $auther_link;
    public readonly string $auther_desc;
    public readonly ?PostDto $next_post;

    public function __construct(
        string $title,
        ?ImageDto $image,
        string $link,
        string $categories,
        string $category_link,
        string $category_name,
        string $time,
        string $content,
        string $auther_id,
        string $auther_name,
        string $auther_link,
        string $auther_desc,
        ?PostDto $next_post,
    ) {
        $this->title = $title;
        $this->image = $image;
        $this->link = $link;
        $this->categories = $categories;
        $this->category_link = $category_link;
        $this->category_name = $category_name;
        $this->time = $time;
        $this->content = $content;
        $this->auther_id = $auther_id;
        $this->auther_name = $auther_name;
        $this->auther_link = $auther_link;
        $this->auther_desc = $auther_desc;
        $this->next_post = $next_post;
    }
}