mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Added setter for show in table to Attachment entity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user