<?php declare(strict_types=1);

namespace App\Engine\Literature;

use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class Literature
{

    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(type: 'integer')]
    private ?int $id = null;
    #[ORM\Column(type: 'integer')]
    private int $priority = 0;
    #[ORM\Column(type: 'string', length: 180, nullable: true)]
    private ?string $url = null;
    #[ORM\Column(type: 'string')]
    private string $title = "";
    #[ORM\Column(type: 'text')]
    private string $text = "";
    #[ORM\Column(type: 'string')]
    private string $image = "";
    #[ORM\Column(type: 'boolean')]
    private bool $enabled = true;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getPriority(): int
    {
        return $this->priority;
    }

    public function getUrl(): ?string
    {
        return $this->url;
    }

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

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

    public function getImage(): string
    {
        return $this->image;
    }

    public function isEnabled(): bool
    {
        return $this->enabled;
    }

    public function setId(?int $id): Literature
    {
        $this->id = $id;
        return $this;
    }

    public function setPriority(int $priority): Literature
    {
        $this->priority = $priority;
        return $this;
    }

    public function setUrl(?string $url): Literature
    {
        $this->url = $url;
        return $this;
    }

    public function setTitle(string $title): Literature
    {
        $this->title = $title;
        return $this;
    }

    public function setText(string $text): Literature
    {
        $this->text = $text;
        return $this;
    }

    public function setImage(string $image): Literature
    {
        $this->image = $image;
        return $this;
    }

    public function setEnabled(bool $enabled): Literature
    {
        $this->enabled = $enabled;
        return $this;
    }

}