Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/src/CoreBundle/Entity/AgendaReminder.php

94 lines
1.7 KiB

<?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;
}
}