feat: add delete property on Event

This commit is contained in:
Maël Gangloff
2024-09-01 21:26:07 +02:00
parent 0b4fc8b061
commit f36116afa9
7 changed files with 83 additions and 10 deletions

View File

@@ -21,6 +21,15 @@ class Event
#[Groups(['event:list'])]
private ?\DateTimeImmutable $date = null;
#[ORM\Column]
#[Groups(['event:list'])]
private ?bool $deleted;
public function __construct()
{
$this->deleted = false;
}
public function getId(): ?int
{
return $this->id;
@@ -49,4 +58,16 @@ class Event
return $this;
}
public function getDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(?bool $deleted): static
{
$this->deleted = $deleted;
return $this;
}
}