<?php
namespace App\Entity;
use App\Repository\HistoryEventRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: HistoryEventRepository::class)]
class HistoryEvent
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'historyEvents')]
#[ORM\JoinColumn(nullable: false)]
private $User;
#[ORM\Column(type: 'string', length: 255)]
private $type;
#[ORM\Column(type: 'datetime')]
private $lastExecuted;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->User;
}
public function setUser(?User $User): self
{
$this->User = $User;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getLastExecuted(): ?\DateTimeInterface
{
return $this->lastExecuted;
}
public function setLastExecuted(\DateTimeInterface $lastExecuted): self
{
$this->lastExecuted = $lastExecuted;
return $this;
}
}