1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
4
|
|
|
|
5
|
|
|
namespace Chamilo\CoreBundle\Entity; |
6
|
|
|
|
7
|
|
|
use Chamilo\CoreBundle\Traits\TimestampableTypedEntity; |
8
|
|
|
use Doctrine\ORM\Mapping as ORM; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @ORM\Table(name="agenda_reminder") |
12
|
|
|
* Add @ to the next line when activatiing the agenda_reminders configuration setting |
13
|
|
|
* ORM\Entity() |
14
|
|
|
*/ |
15
|
|
|
class AgendaReminder |
16
|
|
|
{ |
17
|
|
|
use TimestampableTypedEntity; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
* |
22
|
|
|
* @ORM\Id() |
23
|
|
|
* @ORM\Column(type="bigint") |
24
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
25
|
|
|
*/ |
26
|
|
|
protected $id; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
* |
31
|
|
|
* @ORM\Column(name="type", type="string") |
32
|
|
|
*/ |
33
|
|
|
protected $type; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var int |
37
|
|
|
* |
38
|
|
|
* @ORM\Column(name="event_id", type="integer") |
39
|
|
|
*/ |
40
|
|
|
protected $eventId; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var \DateInterval |
44
|
|
|
* |
45
|
|
|
* @ORM\Column(name="date_interval", type="dateinterval") |
46
|
|
|
*/ |
47
|
|
|
protected $dateInterval; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var bool |
51
|
|
|
* |
52
|
|
|
* @ORM\Column(name="sent", type="boolean") |
53
|
|
|
*/ |
54
|
|
|
protected $sent; |
55
|
|
|
|
56
|
|
|
public function __construct() |
57
|
|
|
{ |
58
|
|
|
$this->sent = false; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
public function getId(): int |
62
|
|
|
{ |
63
|
|
|
return $this->id; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function getType(): string |
67
|
|
|
{ |
68
|
|
|
return $this->type; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function setType(string $type): AgendaReminder |
72
|
|
|
{ |
73
|
|
|
$this->type = $type; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function getEventId(): int |
79
|
|
|
{ |
80
|
|
|
return $this->eventId; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function setEventId(int $eventId): AgendaReminder |
84
|
|
|
{ |
85
|
|
|
$this->eventId = $eventId; |
86
|
|
|
|
87
|
|
|
return $this; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function getDateInterval(): \DateInterval |
91
|
|
|
{ |
92
|
|
|
return $this->dateInterval; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function setDateInterval(\DateInterval $dateInterval): AgendaReminder |
96
|
|
|
{ |
97
|
|
|
$this->dateInterval = $dateInterval; |
98
|
|
|
|
99
|
|
|
return $this; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
public function isSent(): bool |
103
|
|
|
{ |
104
|
|
|
return $this->sent; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
public function setSent(bool $sent): AgendaReminder |
108
|
|
|
{ |
109
|
|
|
$this->sent = $sent; |
110
|
|
|
|
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
} |
114
|
|
|
|