Implement snip hiding

This commit is contained in:
Tim
2025-04-25 22:17:27 +02:00
parent 5a940b9ebd
commit 7c4a2b46c0
13 changed files with 541 additions and 24 deletions

View File

@ -33,6 +33,9 @@ class Snip
#[ORM\Column(length: 255)]
private ?string $parser = null;
#[ORM\Column]
private bool $visible = true;
public function __construct()
{
$this->snipContents = new ArrayCollection();
@ -130,4 +133,16 @@ class Snip
return $this;
}
public function isVisible(): ?bool
{
return $this->visible;
}
public function setVisible(bool $visible): static
{
$this->visible = $visible;
return $this;
}
}