Added constraints for selectable attribute.

This commit is contained in:
Jan Böhmer 2019-08-12 21:47:25 +02:00
parent 408d98c6e1
commit 51be176418
12 changed files with 169 additions and 0 deletions

View file

@ -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();