mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added setter for show in table to Attachment entity
This commit is contained in:
parent
c37a55b352
commit
72afb1de40
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue