mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Use Assert lib for value checking in setters
This commit is contained in:
parent
6276d93389
commit
8c8bbbbd86
4 changed files with 130 additions and 109 deletions
|
@ -108,6 +108,7 @@ class Device extends PartsContainingDBElement
|
|||
* Set the order quantity
|
||||
*
|
||||
* @param integer $new_order_quantity the new order quantity
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderQuantity(int $new_order_quantity) : self
|
||||
{
|
||||
|
@ -121,9 +122,8 @@ class Device extends PartsContainingDBElement
|
|||
|
||||
/**
|
||||
* Set the "order_only_missing_parts" attribute
|
||||
*
|
||||
* @param boolean $new_order_only_missing_parts the new "order_only_missing_parts" attribute
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderOnlyMissingParts(bool $new_order_only_missing_parts) : self
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue