Skip to content

InventoryLocationTrait ​

Type
Trait
Namespace
craft\commerce\base
Implemented by
craft\commerce\models\inventory\UpdateInventoryLevel, craft\commerce\models\inventory\UpdateInventoryLevelInTransfer
Since
5.3.0

Inventory Location Trait

View source

Public Properties ​

PropertyDescription
inventoryLocationIdinteger, null – The inventory item ID

inventoryLocationId ​

Type
integer, null
Default value
null

The inventory item ID

View source

Public Methods ​

MethodDescription
getInventoryLocation()
setInventoryLocation()

getInventoryLocation() ​

View source

Returns ​

craft\commerce\models\InventoryLocation, null

Throws ​

setInventoryLocation() ​

View source

Arguments ​

Returns ​

void