Added setter for show in table to Attachment entity

This commit is contained in:
Jan Böhmer 2019-03-05 14:52:23 +01:00
parent c37a55b352
commit 72afb1de40

View file

@ -39,6 +39,8 @@ class Attachment extends NamedDBElement
*/
protected $show_in_table;
/**
* @var string The filename using the %BASE% variable
* @ORM\Column(type="string")
@ -145,4 +147,18 @@ class Attachment extends NamedDBElement
{
return 'A' . sprintf('%09d', $this->getID());
}
/*****************************************************************************************************
* Setters
****************************************************************************************************/
/**
* @param bool $show_in_table
* @return self
*/
public function setShowInTable(bool $show_in_table): self
{
$this->show_in_table = $show_in_table;
return $this;
}
}