2024-07-11 17:01:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2024-07-17 00:19:27 +02:00
|
|
|
use Symfony\Component\Serializer\Attribute\Groups;
|
2024-07-11 17:01:16 +02:00
|
|
|
|
2024-07-11 22:20:20 +02:00
|
|
|
#[ORM\MappedSuperclass]
|
2024-07-11 18:29:22 +02:00
|
|
|
class Event
|
2024-07-11 17:01:16 +02:00
|
|
|
{
|
2024-07-11 18:29:22 +02:00
|
|
|
#[ORM\Id]
|
2024-07-12 13:16:40 +02:00
|
|
|
#[ORM\GeneratedValue]
|
|
|
|
|
#[ORM\Column]
|
|
|
|
|
private ?int $id = null;
|
|
|
|
|
|
2024-07-23 03:05:35 +02:00
|
|
|
#[ORM\Column(length: 255)]
|
2024-07-17 00:19:27 +02:00
|
|
|
#[Groups(['event:list'])]
|
2024-07-23 03:05:35 +02:00
|
|
|
private ?string $action = null;
|
2024-07-11 18:29:22 +02:00
|
|
|
|
2024-07-12 01:49:46 +02:00
|
|
|
#[ORM\Column(type: 'datetime_immutable')]
|
2024-07-17 00:19:27 +02:00
|
|
|
#[Groups(['event:list'])]
|
2024-08-02 23:24:52 +02:00
|
|
|
private ?\DateTimeImmutable $date = null;
|
2024-07-11 17:01:16 +02:00
|
|
|
|
2024-09-01 21:26:07 +02:00
|
|
|
#[ORM\Column]
|
|
|
|
|
#[Groups(['event:list'])]
|
|
|
|
|
private ?bool $deleted;
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->deleted = false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-12 13:16:40 +02:00
|
|
|
public function getId(): ?int
|
|
|
|
|
{
|
|
|
|
|
return $this->id;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-23 03:05:35 +02:00
|
|
|
public function getAction(): ?string
|
2024-07-11 17:01:16 +02:00
|
|
|
{
|
2024-07-11 18:29:22 +02:00
|
|
|
return $this->action;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-23 03:05:35 +02:00
|
|
|
public function setAction(string $action): static
|
2024-07-11 18:29:22 +02:00
|
|
|
{
|
|
|
|
|
$this->action = $action;
|
2024-07-11 17:01:16 +02:00
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-02 23:24:52 +02:00
|
|
|
public function getDate(): ?\DateTimeImmutable
|
2024-07-11 17:01:16 +02:00
|
|
|
{
|
2024-07-11 18:29:22 +02:00
|
|
|
return $this->date;
|
2024-07-11 17:01:16 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-02 23:24:52 +02:00
|
|
|
public function setDate(\DateTimeImmutable $date): static
|
2024-07-11 17:01:16 +02:00
|
|
|
{
|
2024-07-11 18:29:22 +02:00
|
|
|
$this->date = $date;
|
2024-07-11 17:01:16 +02:00
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
2024-09-01 21:26:07 +02:00
|
|
|
|
|
|
|
|
public function getDeleted(): ?bool
|
|
|
|
|
{
|
|
|
|
|
return $this->deleted;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setDeleted(?bool $deleted): static
|
|
|
|
|
{
|
|
|
|
|
$this->deleted = $deleted;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
2024-07-11 17:01:16 +02:00
|
|
|
}
|