QuantityControl
Table of Contents
Constants
-
AVAILABLE_QUANTITY
= 'available_quantity'
-
QUANTITY
= 'quantity'
-
QUANTITY_CONTROL_AVAILABLE_QUANTITY
= self::AVAILABLE_QUANTITY
-
QUANTITY_CONTROL_QUANTITY
= self::QUANTITY
-
QUANTITY_CONTROL_RESERVED_QUANTITY
= self::RESERVED_QUANTITY
-
RESERVED_QUANTITY
= 'reserved_quantity'
-
RESERVER_STORE_QUANTITY
= 'reserved_store_quantity'
Methods
-
addAvailableQuantity()
: void
-
addQuantity()
: void
-
addReservedQuantity()
: void
-
addReservedStoreQuantity()
: void
-
getAvailableQuantity()
: null|float
-
getQuantity()
: null|float
-
getReservedQuantity()
: null|float
-
getReservedStoreQuantity()
: null|float
-
resetAllQuantity()
: void
-
resetAvailableQuantity()
: mixed
-
resetQuantity()
: void
-
resetReservedQuantity()
: void
-
resetReservedStoreQuantity()
: mixed
-
setAvailableQuantity()
: void
-
setQuantity()
: void
-
setReservedQuantity()
: void
-
setReservedQuantityFromStores()
: void
-
setReservedStoreQuantity()
: void
-
setValues()
: void
AVAILABLE_QUANTITY
public
mixed
AVAILABLE_QUANTITY
= 'available_quantity'
QUANTITY
public
mixed
QUANTITY
= 'quantity'
QUANTITY_CONTROL_AVAILABLE_QUANTITY
public
mixed
QUANTITY_CONTROL_AVAILABLE_QUANTITY
= self::AVAILABLE_QUANTITY
QUANTITY_CONTROL_QUANTITY
public
mixed
QUANTITY_CONTROL_QUANTITY
= self::QUANTITY
QUANTITY_CONTROL_RESERVED_QUANTITY
public
mixed
QUANTITY_CONTROL_RESERVED_QUANTITY
= self::RESERVED_QUANTITY
RESERVED_QUANTITY
public
mixed
RESERVED_QUANTITY
= 'reserved_quantity'
RESERVER_STORE_QUANTITY
public
mixed
RESERVER_STORE_QUANTITY
= 'reserved_store_quantity'
addAvailableQuantity()
public
static addAvailableQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
addQuantity()
public
static addQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
addReservedQuantity()
public
static addReservedQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
addReservedStoreQuantity()
public
static addReservedStoreQuantity(string|int $productId, int $storeId, int|float|string|null $value[, bool $summary = false ]) : void
Parameters
-
$productId
: string|int
-
-
$storeId
: int
-
-
$value
: int|float|string|null
-
-
$summary
: bool
= false
-
getAvailableQuantity()
public
static getAvailableQuantity(string|int $productId) : null|float
Parameters
-
$productId
: string|int
-
getQuantity()
public
static getQuantity(string|int $productId) : null|float
Parameters
-
$productId
: string|int
-
getReservedQuantity()
public
static getReservedQuantity(string|int $productId) : null|float
Parameters
-
$productId
: string|int
-
getReservedStoreQuantity()
public
static getReservedStoreQuantity(string|int $productId, int $storeId) : null|float
Parameters
-
$productId
: string|int
-
-
$storeId
: int
-
resetAllQuantity()
public
static resetAllQuantity([string|int|null $productId = null ]) : void
Parameters
-
$productId
: string|int|null
= null
-
resetAvailableQuantity()
public
static resetAvailableQuantity(string|int|null $productId) : mixed
Parameters
-
$productId
: string|int|null
-
resetQuantity()
public
static resetQuantity(string|int $productId) : void
Parameters
-
$productId
: string|int
-
resetReservedQuantity()
public
static resetReservedQuantity(string|int $productId) : void
Parameters
-
$productId
: string|int
-
resetReservedStoreQuantity()
public
static resetReservedStoreQuantity(string|int|null $productId) : mixed
Parameters
-
$productId
: string|int|null
-
setAvailableQuantity()
public
static setAvailableQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
setQuantity()
public
static setQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
setReservedQuantity()
public
static setReservedQuantity(string|int $productId, int|float|string|null $value) : void
Parameters
-
$productId
: string|int
-
-
$value
: int|float|string|null
-
setReservedQuantityFromStores()
public
static setReservedQuantityFromStores(string|int $productId) : void
Parameters
-
$productId
: string|int
-
setReservedStoreQuantity()
public
static setReservedStoreQuantity(string|int $productId, int $storeId, int|float|string|null $value[, bool $summary = false ]) : void
Parameters
-
$productId
: string|int
-
-
$storeId
: int
-
-
$value
: int|float|string|null
-
-
$summary
: bool
= false
-
setValues()
public
static setValues(string|int $productId, array<string|int, mixed> $values) : void
Parameters
-
$productId
: string|int
-
-
$values
: array<string|int, mixed>
-