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
Public Properties ​
| Property | Description |
|---|---|
| inventoryLocationId | integer, null – The inventory item ID |
inventoryLocationId ​
The inventory item ID
Public Methods ​
| Method | Description |
|---|---|
| getInventoryLocation() | |
| setInventoryLocation() |
getInventoryLocation() ​
Returns ​
craft\commerce\models\InventoryLocation, null
Throws ​
setInventoryLocation() ​
Arguments ​
$inventoryLocation(craft\commerce\models\InventoryLocation, null)
Returns ​
void