Allow snips to be archived
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user