SilverCart\Model\Product\Product::incrementStockQuantity
increments the products stock quantity of this product
- Author: Sebastian Diel <sdiel@pixeltricks.de>
Signature
public function incrementStockQuantity(int
$quantity,
[string
$reason = '',
[int
$origin = StockItemEntry::ORIGIN_CODE_UNDEFINED,
[Order
$order = NULL]]] )
Parameters
$quantity
—
int
- the amount to add to the current stock quantity
$reason
—
string
- Reason to change the stock quantity.
$origin
—
int
- Origin which changes the stock quantity.
$order
—
SilverCart\Model\Order\Order
- Order context
Returns
- $this