|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace PhpList\Core\Domain\Model\Configuration; |
| 6 | + |
| 7 | +use DateTimeInterface; |
| 8 | +use Doctrine\ORM\Mapping as ORM; |
| 9 | +use PhpList\Core\Domain\Model\Interfaces\DomainModel; |
| 10 | +use PhpList\Core\Domain\Model\Interfaces\Identity; |
| 11 | +use PhpList\Core\Domain\Model\Traits\IdentityTrait; |
| 12 | +use PhpList\Core\Domain\Repository\Configuration\EventLogRepository; |
| 13 | + |
| 14 | +#[ORM\Entity(repositoryClass: EventLogRepository::class)] |
| 15 | +#[ORM\Table(name: "phplist_eventlog")] |
| 16 | +#[ORM\Index(name: "enteredidx", columns: ["entered"])] |
| 17 | +#[ORM\Index(name: "pageidx", columns: ["page"])] |
| 18 | +class EventLog implements DomainModel, Identity |
| 19 | +{ |
| 20 | + use IdentityTrait; |
| 21 | + |
| 22 | + #[ORM\Column(type: "datetime", nullable: true)] |
| 23 | + private ?DateTimeInterface $entered = null; |
| 24 | + |
| 25 | + #[ORM\Column(type: "string", length: 100, nullable: true)] |
| 26 | + private ?string $page = null; |
| 27 | + |
| 28 | + #[ORM\Column(type: "text", nullable: true)] |
| 29 | + private ?string $entry = null; |
| 30 | + |
| 31 | + public function getId(): int |
| 32 | + { |
| 33 | + return $this->id; |
| 34 | + } |
| 35 | + |
| 36 | + public function getEntered(): ?DateTimeInterface |
| 37 | + { |
| 38 | + return $this->entered; |
| 39 | + } |
| 40 | + |
| 41 | + public function setEntered(?DateTimeInterface $entered): self |
| 42 | + { |
| 43 | + $this->entered = $entered; |
| 44 | + return $this; |
| 45 | + } |
| 46 | + |
| 47 | + public function getPage(): ?string |
| 48 | + { |
| 49 | + return $this->page; |
| 50 | + } |
| 51 | + |
| 52 | + public function setPage(?string $page): self |
| 53 | + { |
| 54 | + $this->page = $page; |
| 55 | + return $this; |
| 56 | + } |
| 57 | + |
| 58 | + public function getEntry(): ?string |
| 59 | + { |
| 60 | + return $this->entry; |
| 61 | + } |
| 62 | + |
| 63 | + public function setEntry(?string $entry): self |
| 64 | + { |
| 65 | + $this->entry = $entry; |
| 66 | + return $this; |
| 67 | + } |
| 68 | +} |
0 commit comments