SimpleProduct
class SimpleProduct implements PrimaryKeyInterface, SimpleProductDependencyInterface
SimpleProduct
Properties
| protected int | $numberInStock | Available quantity, total quantity decreased by reserved quantity | |
| protected int | $minQuantity | Minimal quantity that can be added to cart | |
| protected int | $totalQuantity | Total quantity in stock, including reserved quantity | |
| protected int | $reservedQuantity | Reserved quantity | |
| protected int | $minQuantityLightValue | Minimal quantity light value | |
| protected int | $maxQuantityLightValue | Maximal quantity light value | |
| protected Product | $baseProduct | Main product | |
| protected ArrayCollection | $groupedSimpleProducts | List of associated group products | |
| protected ArrayCollection | $configurableProducts | List of associated configurable products | |
| protected ArrayCollection | $attributeSets | List of associated attribute sets |
Methods
Constructor
No description
No description
Get id
Get GroupSimpleProduct
No description
No description
Get configurableProducts
Set numberInStock
Get numberInStock
No description
Get attributeSets
No description
No description
No description
No description
No description
No description
Increase reserved quantity and decrease available quantity
Decrease reserved quantity and increase available quantity
Increase reserved quantity
Decrease total quantity
No description
No description
No description
No description
Details
at line 166
__construct()
Constructor
at line 176
Product
getBaseProduct()
at line 184
setBaseProduct(Product $baseProduct)
at line 194
SimpleProduct
setId(int $id)
at line 206
integer
getId()
Get id
at line 219
SimpleProduct
addGroupedSimpleProduct(GroupSimpleProduct $groupedSimpleProducts)
Add groupedSimpleProducts
at line 234
SimpleProduct
removeGroupedSimpleProduct(GroupSimpleProduct $groupedSimpleProduct)
Remove GroupSimpleProduct
at line 247
ArrayCollection
getGroupedSimpleProducts()
Get GroupSimpleProduct
at line 260
SimpleProduct
addConfigurableProduct(ConfigurableProduct $configurableProduct)
Add configurableProduct
at line 272
SimpleProduct
setConfigurableProducts(ArrayCollection $configurableProducts)
at line 282
setGroupedProducts(ArrayCollection $groupedProducts)
at line 294
SimpleProduct
removeConfigurableProduct(ConfigurableProduct $configurableProduct)
Remove configurableProduct
at line 306
ArrayCollection
getConfigurableProducts()
Get configurableProducts
at line 318
mixed
setNumberInStock(int $numberInStock)
Set numberInStock
at line 330
mixed
getNumberInStock()
Get numberInStock
at line 343
SimpleProduct
addAttributeSet(AttributeSet $attributeSet)
Add attributeSet
at line 358
SimpleProduct
setAttributeSets(ArrayCollection $attributeSets)
at line 372
SimpleProduct
removeAttributeSet(AttributeSet $attributeSet)
Remove attributeSet
at line 384
ArrayCollection
getAttributeSets()
Get attributeSets
at line 392
int
getMinQuantity()
at line 402
SimpleProduct
setMinQuantity(int $minQuantity)
at line 412
int
getTotalQuantity()
at line 422
SimpleProduct
setTotalQuantity(int $totalQuantity)
at line 432
int
getReservedQuantity()
at line 442
SimpleProduct
setReservedQuantity(int $reservedQuantity)
at line 455
SimpleProduct
increaseReservedQuantity(int $qty)
Increase reserved quantity and decrease available quantity
at line 469
SimpleProduct
decreaseReservedQuantity(integer $qty)
Decrease reserved quantity and increase available quantity
at line 483
SimpleProduct
increaseTotalQuantity(integer $qty)
Increase reserved quantity
at line 497
SimpleProduct
decreaseTotalQuantity(integer $qty)
Decrease total quantity