<?php declare(strict_types=1);

namespace App\Engine\Literature;

readonly class PieceOfLiterature
{

    public function __construct(
        private string $title,
        private string $pictureHtml,
        private string $text,
        private string $link,
    ) {
    }

    public function getTitle(): string
    {
        return $this->title;
    }

    public function getPictureHtml(): string
    {
        return $this->pictureHtml;
    }

    public function getText(): string
    {
        return $this->text;
    }

    public function getLink(): string
    {
        return $this->link;
    }

}