mirror of
https://github.com/standardebooks/web.git
synced 2025-07-04 22:00:35 -04:00
26 lines
419 B
PHP
26 lines
419 B
PHP
<?
|
|
use Safe\DateTimeImmutable;
|
|
|
|
class ProjectReminder{
|
|
public int $ProjectId;
|
|
public DateTimeImmutable $Created;
|
|
public Enums\ProjectReminderType $Type;
|
|
|
|
public function Create(): void{
|
|
$this->Created = NOW;
|
|
Db::Query('
|
|
INSERT
|
|
into ProjectReminders
|
|
(
|
|
ProjectId,
|
|
Created,
|
|
Type
|
|
)
|
|
values(
|
|
?,
|
|
?,
|
|
?
|
|
)
|
|
', [$this->ProjectId, $this->Created, $this->Type]);
|
|
}
|
|
}
|