Add private comment options to activity type (visibility + label)

This commit is contained in:
2022-04-25 15:46:55 +02:00
parent 1f2638626c
commit b36fd57e4f
7 changed files with 82 additions and 9 deletions

View File

@@ -76,6 +76,16 @@ class ActivityType
*/
private int $commentVisible = self::FIELD_OPTIONAL;
/**
* @ORM\Column(type="string", nullable=false, options={"default": ""})
*/
private string $privateCommentLabel = '';
/**
* @ORM\Column(type="smallint", nullable=false, options={"default": 1})
*/
private int $privateCommentVisible = self::FIELD_OPTIONAL;
/**
* @ORM\Column(type="string", nullable=false, options={"default": ""})
*/
@@ -314,6 +324,16 @@ class ActivityType
return $this->commentVisible;
}
public function getPrivateCommentLabel(): string
{
return $this->privateCommentLabel;
}
public function getPrivateCommentVisible(): int
{
return $this->privateCommentVisible;
}
public function getDateLabel(): string
{
return $this->dateLabel;
@@ -573,6 +593,20 @@ class ActivityType
return $this;
}
public function setPrivateCommentLabel(string $privateCommentLabel): self
{
$this->privateCommentLabel = $privateCommentLabel;
return $this;
}
public function setPrivateCommentVisible(int $privateCommentVisible): self
{
$this->privateCommentVisible = $privateCommentVisible;
return $this;
}
public function setDateLabel(string $dateLabel): self
{
$this->dateLabel = $dateLabel;