Allow snips to be archived

This commit is contained in:
Tim
2025-05-10 16:48:03 +02:00
parent 50a7ab7985
commit 47ea226ed7
8 changed files with 107 additions and 10 deletions

View File

@ -36,6 +36,9 @@ class Snip
#[ORM\Column]
private bool $visible = true;
#[ORM\Column]
private bool $archived = false;
public function __construct()
{
$this->snipContents = new ArrayCollection();
@ -145,4 +148,16 @@ class Snip
return $this;
}
public function isArchived(): ?bool
{
return $this->archived;
}
public function setArchived(bool $archived): static
{
$this->archived = $archived;
return $this;
}
}