Discount
extends DiscountType
in package
Class representing Discount.
Aktualizace záložky Slevy u zásoby.
Table of Contents
Properties
- $discountStockItem : array<string|int, DiscountStockItemType>
- $version : string|null
Methods
- addToDiscountStockItem() : self
- Adds as discountStockItem.
- getDiscountStockItem() : array<string|int, DiscountStockItemType>
- Gets as discountStockItem.
- getVersion() : string
- Gets as version.
- issetDiscountStockItem() : bool
- isset discountStockItem.
- setDiscountStockItem() : self
- Sets a new discountStockItem.
- setVersion() : self
- Sets a new version.
- unsetDiscountStockItem() : void
- unset discountStockItem.
Properties
$discountStockItem
private
array<string|int, DiscountStockItemType>
$discountStockItem
= []
$version
private
string|null
$version
= null
Methods
addToDiscountStockItem()
Adds as discountStockItem.
public
addToDiscountStockItem(DiscountStockItemType $discountStockItem) : self
Parameters
- $discountStockItem : DiscountStockItemType
Return values
selfgetDiscountStockItem()
Gets as discountStockItem.
public
getDiscountStockItem() : array<string|int, DiscountStockItemType>
Return values
array<string|int, DiscountStockItemType>getVersion()
Gets as version.
public
getVersion() : string
Return values
stringissetDiscountStockItem()
isset discountStockItem.
public
issetDiscountStockItem(int|string $index) : bool
Parameters
- $index : int|string
Return values
boolsetDiscountStockItem()
Sets a new discountStockItem.
public
setDiscountStockItem(array<string|int, DiscountStockItemType> $discountStockItem) : self
Parameters
- $discountStockItem : array<string|int, DiscountStockItemType>
Return values
selfsetVersion()
Sets a new version.
public
setVersion(string $version) : self
Parameters
- $version : string
Return values
selfunsetDiscountStockItem()
unset discountStockItem.
public
unsetDiscountStockItem(int|string $index) : void
Parameters
- $index : int|string