<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

#[ORM\Table(name: 'notification_event')]
#[ORM\Entity]
class NotificationEvent
{
    #[ORM\Column(name: 'id', type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue]
    protected ?int $id = null;

    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
    protected string $title;

    #[ORM\Column(name: 'content', type: 'text', nullable: true)]
    protected ?string $content = null;

    #[ORM\Column(name: 'link', type: 'text', nullable: true)]
    protected ?string $link = null;

    #[ORM\Column(name: 'persistent', type: 'integer', nullable: true)]
    protected ?int $persistent = null;

    #[ORM\Column(name: 'day_diff', type: 'integer', nullable: true)]
    protected ?int $dayDiff = null;

    #[ORM\Column(name: 'event_type', type: 'string', length: 255, nullable: false)]
    protected string $eventType;

    #[ORM\Column(name: 'event_id', type: 'integer', nullable: true)]
    protected ?int $eventId = null;

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

    public function setId(int $id): self
    {
        $this->id = $id;

        return $this;
    }

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

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getContent(): ?string
    {
        return $this->content;
    }

    public function setContent(?string $content): self
    {
        $this->content = $content;

        return $this;
    }

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

    public function setLink(?string $link): self
    {
        $this->link = $link;

        return $this;
    }

    public function getPersistent(): ?int
    {
        return $this->persistent;
    }

    public function setPersistent(?int $persistent): self
    {
        $this->persistent = $persistent;

        return $this;
    }

    public function getDayDiff(): ?int
    {
        return $this->dayDiff;
    }

    public function setDayDiff(?int $dayDiff): self
    {
        $this->dayDiff = $dayDiff;

        return $this;
    }

    public function getEventType(): string
    {
        return $this->eventType;
    }

    public function setEventType(string $eventType): self
    {
        $this->eventType = $eventType;

        return $this;
    }

    public function getEventId(): ?int
    {
        return $this->eventId;
    }

    public function setEventId(?int $eventId): self
    {
        $this->eventId = $eventId;

        return $this;
    }
}
