mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Added constraints for selectable attribute.
This commit is contained in:
parent
408d98c6e1
commit
51be176418
12 changed files with 169 additions and 0 deletions
|
@ -275,6 +275,14 @@ abstract class StructuralDBElement extends AttachmentContainingDBElement
|
|||
return $this->children;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isNotSelectable(): bool
|
||||
{
|
||||
return $this->not_selectable;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Setters
|
||||
|
@ -317,6 +325,16 @@ abstract class StructuralDBElement extends AttachmentContainingDBElement
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $not_selectable
|
||||
* @return StructuralDBElement
|
||||
*/
|
||||
public function setNotSelectable(bool $not_selectable): StructuralDBElement
|
||||
{
|
||||
$this->not_selectable = $not_selectable;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function clearChildren() : self
|
||||
{
|
||||
$this->children = new ArrayCollection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue