DiscountStockItemType
in package
Class representing DiscountStockItemType.
XSD Type: discountStockItemType
Table of Contents
Properties
- $discounts : array<string|int, DiscountsItemType>
- Slevy/vedeljší ceny, které se mají upravit.
- $stockItem : StockItemType|null
- Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
Methods
- addToDiscounts() : self
- Adds as discountsItem.
- getDiscounts() : array<string|int, DiscountsItemType>
- Gets as discounts.
- getStockItem() : StockItemType
- Gets as stockItem.
- issetDiscounts() : bool
- isset discounts.
- setDiscounts() : self
- Sets a new discounts.
- setStockItem() : self
- Sets a new stockItem.
- unsetDiscounts() : void
- unset discounts.
Properties
$discounts
Slevy/vedeljší ceny, které se mají upravit.
private
array<string|int, DiscountsItemType>
$discounts
= null
$stockItem
Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
private
StockItemType|null
$stockItem
= null
Methods
addToDiscounts()
Adds as discountsItem.
public
addToDiscounts(DiscountsItemType $discountsItem) : self
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $discountsItem : DiscountsItemType
Return values
selfgetDiscounts()
Gets as discounts.
public
getDiscounts() : array<string|int, DiscountsItemType>
Slevy/vedeljší ceny, které se mají upravit.
Return values
array<string|int, DiscountsItemType>getStockItem()
Gets as stockItem.
public
getStockItem() : StockItemType
Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
Return values
StockItemTypeissetDiscounts()
isset discounts.
public
issetDiscounts(int|string $index) : bool
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $index : int|string
Return values
boolsetDiscounts()
Sets a new discounts.
public
setDiscounts(array<string|int, DiscountsItemType> $discounts) : self
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $discounts : array<string|int, DiscountsItemType>
Return values
selfsetStockItem()
Sets a new stockItem.
public
setStockItem(StockItemType $stockItem) : self
Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
Parameters
- $stockItem : StockItemType
Return values
selfunsetDiscounts()
unset discounts.
public
unsetDiscounts(int|string $index) : void
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $index : int|string