|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
|
|
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
|
|
|
|
|
|
use Chamilo\CoreBundle\Traits\TimestampableTypedEntity;
|
|
|
|
|
use DateInterval;
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
|
|
#[ORM\Entity]
|
|
|
|
|
#[ORM\Table(name: 'agenda_reminder')]
|
|
|
|
|
class AgendaReminder
|
|
|
|
|
{
|
|
|
|
|
use TimestampableTypedEntity;
|
|
|
|
|
|
|
|
|
|
#[ORM\Id]
|
|
|
|
|
#[ORM\Column(type: 'bigint')]
|
|
|
|
|
#[ORM\GeneratedValue(strategy: 'AUTO')]
|
|
|
|
|
protected int $id;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(name: 'type', type: 'string')]
|
|
|
|
|
protected string $type;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(name: 'event_id', type: 'integer')]
|
|
|
|
|
protected int $eventId;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(name: 'date_interval', type: 'dateinterval')]
|
|
|
|
|
protected DateInterval $dateInterval;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(name: 'sent', type: 'boolean')]
|
|
|
|
|
protected bool $sent;
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->sent = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getId(): int
|
|
|
|
|
{
|
|
|
|
|
return $this->id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getType(): string
|
|
|
|
|
{
|
|
|
|
|
return $this->type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setType(string $type): self
|
|
|
|
|
{
|
|
|
|
|
$this->type = $type;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getEventId(): int
|
|
|
|
|
{
|
|
|
|
|
return $this->eventId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setEventId(int $eventId): self
|
|
|
|
|
{
|
|
|
|
|
$this->eventId = $eventId;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getDateInterval(): DateInterval
|
|
|
|
|
{
|
|
|
|
|
return $this->dateInterval;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setDateInterval(DateInterval $dateInterval): self
|
|
|
|
|
{
|
|
|
|
|
$this->dateInterval = $dateInterval;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function isSent(): bool
|
|
|
|
|
{
|
|
|
|
|
return $this->sent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setSent(bool $sent): self
|
|
|
|
|
{
|
|
|
|
|
$this->sent = $sent;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
}
|