DiscountStockItemType
in package
Class representing DiscountStockItemType.
XSD Type: discountStockItemType
Table of Contents
- $discounts : array<string|int, mixed>|null
- Slevy/vedeljší ceny, které se mají upravit.
- $stockItem : StockItemType|null
- Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
- 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, mixed>|null
$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
self —getDiscounts()
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
StockItemType —issetDiscounts()
isset discounts.
public
issetDiscounts(int|string $index) : bool
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $index : int|string
Return values
bool —setDiscounts()
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
self —setStockItem()
Sets a new stockItem.
public
setStockItem(StockItemType $stockItem) : self
Zásoba, jejíž slevy/vedlejší ceny se mají upravit.
Parameters
- $stockItem : StockItemType
Return values
self —unsetDiscounts()
unset discounts.
public
unsetDiscounts(int|string $index) : void
Slevy/vedeljší ceny, které se mají upravit.
Parameters
- $index : int|string