2024-07-10 23:30:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
|
|
use App\Repository\EventRepository;
|
|
|
|
|
use Doctrine\DBAL\Types\Types;
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
|
|
#[ORM\Entity(repositoryClass: EventRepository::class)]
|
|
|
|
|
class Event
|
|
|
|
|
{
|
|
|
|
|
#[ORM\Id]
|
|
|
|
|
#[ORM\Column(length: 255)]
|
|
|
|
|
private ?string $action = null;
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
|
|
|
|
private ?\DateTimeImmutable $date = null;
|
|
|
|
|
|
2024-07-10 23:58:59 +02:00
|
|
|
#[ORM\Id]
|
2024-07-10 23:30:59 +02:00
|
|
|
#[ORM\ManyToOne(inversedBy: 'events')]
|
2024-07-11 02:29:08 +02:00
|
|
|
#[ORM\JoinColumn(referencedColumnName: 'ldhname', nullable: false)]
|
2024-07-10 23:30:59 +02:00
|
|
|
private ?Domain $domain = null;
|
|
|
|
|
|
|
|
|
|
public function getAction(): ?string
|
|
|
|
|
{
|
|
|
|
|
return $this->action;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setAction(string $action): static
|
|
|
|
|
{
|
|
|
|
|
$this->action = $action;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getDate(): ?\DateTimeImmutable
|
|
|
|
|
{
|
|
|
|
|
return $this->date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setDate(\DateTimeImmutable $date): static
|
|
|
|
|
{
|
|
|
|
|
$this->date = $date;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getDomain(): ?Domain
|
|
|
|
|
{
|
|
|
|
|
return $this->domain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setDomain(?Domain $domain): static
|
|
|
|
|
{
|
|
|
|
|
$this->domain = $domain;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
}
|