feat: mark documents global

This commit is contained in:
Björn Fromme
2024-01-28 14:09:02 +01:00
parent bd3b3688c5
commit 79a4a8fef5
8 changed files with 105 additions and 15 deletions
+15
View File
@@ -63,6 +63,9 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
#[ORM\ManyToOne(inversedBy: 'documents')]
private ?Disposition $disposition = null;
#[ORM\Column]
private bool $global = false;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $comment = null;
@@ -219,6 +222,18 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
return $this;
}
public function isGlobal(): bool
{
return $this->global;
}
public function setGlobal(bool $global): static
{
$this->global = $global;
return $this;
}
public function getComment(): ?string
{
return $this->comment;