-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathEventLog.php
72 lines (58 loc) · 1.72 KB
/
EventLog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
declare(strict_types=1);
namespace PhpList\Core\Domain\Model\Configuration;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
use PhpList\Core\Domain\Model\Interfaces\DomainModel;
use PhpList\Core\Domain\Model\Interfaces\Identity;
use PhpList\Core\Domain\Repository\Configuration\EventLogRepository;
use Symfony\Component\Serializer\Attribute\Groups;
#[ORM\Entity(repositoryClass: EventLogRepository::class)]
#[ORM\Table(name: 'phplist_eventlog')]
#[ORM\Index(name: 'enteredidx', columns: ['entered'])]
#[ORM\Index(name: 'pageidx', columns: ['page'])]
class EventLog implements DomainModel, Identity
{
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue]
#[Groups(['SubscriberList', 'SubscriberListMembers'])]
private ?int $id = null;
#[ORM\Column(type: 'datetime', nullable: true)]
private ?DateTimeInterface $entered = null;
#[ORM\Column(type: 'string', length: 100, nullable: true)]
private ?string $page = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $entry = null;
public function getId(): ?int
{
return $this->id;
}
public function getEntered(): ?DateTimeInterface
{
return $this->entered;
}
public function setEntered(?DateTimeInterface $entered): self
{
$this->entered = $entered;
return $this;
}
public function getPage(): ?string
{
return $this->page;
}
public function setPage(?string $page): self
{
$this->page = $page;
return $this;
}
public function getEntry(): ?string
{
return $this->entry;
}
public function setEntry(?string $entry): self
{
$this->entry = $entry;
return $this;
}
}