order_quantity; } /** * Get the "order_only_missing_parts" attribute * * @return boolean the "order_only_missing_parts" attribute */ public function getOrderOnlyMissingParts() : bool { return $this->order_only_missing_parts; } /******************************************************************************** * * Setters * *********************************************************************************/ /** * Set the order quantity * * @param integer $new_order_quantity the new order quantity * @return self */ public function setOrderQuantity(int $new_order_quantity) : self { if($new_order_quantity < 0) { throw new \InvalidArgumentException('The new order quantity must not be negative!'); } $this->order_quantity = $new_order_quantity; return $this; } /** * 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 { $this->order_only_missing_parts = $new_order_only_missing_parts; return $this; } /** * Returns the ID as an string, defined by the element class. * This should have a form like P000014, for a part with ID 14. * @return string The ID as a string; */ public function getIDString(): string { return 'D' . sprintf('%09d', $this->getID()); } }