forked from mirror/Part-DB.Part-DB-server
Return $this in Entitys setters, so that they can be chained.
This commit is contained in:
parent
7dbdb959b8
commit
ee29ad3e5a
9 changed files with 99 additions and 44 deletions
|
@ -72,9 +72,10 @@ class Storelocation extends PartsContainingDBElement
|
|||
*
|
||||
* @throws Exception if there was an error
|
||||
*/
|
||||
public function setIsFull(bool $new_is_full) : void
|
||||
public function setIsFull(bool $new_is_full) : self
|
||||
{
|
||||
$this->is_full = $new_is_full;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue