phpDocumentor

Discount
in package

Table of Contents

$ControlId  : int
$DiscountActive  : bool
$DiscountAmount  : float
$DiscountedPrice  : float
$DiscountPercent  : float
$ExpireDate  : DateTimeImmutable
$NewPriceType  : string
$PriceType  : string
$Quantity  : int|null
$SavedAmount  : float
$ShopID  : int
$StartDate  : DateTimeImmutable
$Type  : int
__construct()  : mixed
getControlId()  : int
getDiscountAmount()  : float
getDiscountedPrice()  : float
getDiscountPercent()  : float
getExpireDate()  : DateTimeImmutable
getNewPriceType()  : string
getPriceType()  : string
getQuantity()  : int|null
getSavedAmount()  : float
getShopID()  : int
getStartDate()  : DateTimeImmutable
getType()  : int
isDiscountActive()  : bool
setControlId()  : void
setDiscountActive()  : void
setDiscountAmount()  : void
setDiscountedPrice()  : void
setDiscountPercent()  : void
setExpireDate()  : void
setNewPriceType()  : void
setPriceType()  : void
setQuantity()  : void
setSavedAmount()  : void
setShopID()  : void
setStartDate()  : void
setType()  : void
toArray()  : array<string|int, mixed>

Properties

$DiscountActive

private bool $DiscountActive

$DiscountAmount

private float $DiscountAmount

$DiscountedPrice

private float $DiscountedPrice

$DiscountPercent

private float $DiscountPercent

$ExpireDate

private DateTimeImmutable $ExpireDate

$NewPriceType

private string $NewPriceType

$StartDate

private DateTimeImmutable $StartDate

Methods

__construct()

public __construct(int $ShopID[, bool $DiscountActive = false ][, int $ControlId = 3 ][, string $PriceType = '' ][, string $NewPriceType = '' ][, DateTimeImmutable|null $StartDate = null ][, DateTimeImmutable|null $ExpireDate = null ], int $Type, float $DiscountPercent, float $DiscountAmount, float $SavedAmount, float $DiscountedPrice[, int|null $Quantity = null ]) : mixed
Parameters
$ShopID : int
$DiscountActive : bool = false
$ControlId : int = 3
$PriceType : string = ''
$NewPriceType : string = ''
$StartDate : DateTimeImmutable|null = null
$ExpireDate : DateTimeImmutable|null = null
$Type : int
$DiscountPercent : float
$DiscountAmount : float
$SavedAmount : float
$DiscountedPrice : float
$Quantity : int|null = null
Return values
mixed

getControlId()

public getControlId() : int
Return values
int

getDiscountAmount()

public getDiscountAmount() : float
Return values
float

getDiscountedPrice()

public getDiscountedPrice() : float
Return values
float

getDiscountPercent()

public getDiscountPercent() : float
Return values
float

getExpireDate()

public getExpireDate() : DateTimeImmutable
Return values
DateTimeImmutable

getNewPriceType()

public getNewPriceType() : string
Return values
string

getPriceType()

public getPriceType() : string
Return values
string

getQuantity()

public getQuantity() : int|null
Return values
int|null

getSavedAmount()

public getSavedAmount() : float
Return values
float

getShopID()

public getShopID() : int
Return values
int

getStartDate()

public getStartDate() : DateTimeImmutable
Return values
DateTimeImmutable

getType()

public getType() : int
Return values
int

isDiscountActive()

public isDiscountActive() : bool
Return values
bool

setControlId()

public setControlId(int $ControlId) : void
Parameters
$ControlId : int
Return values
void

setDiscountActive()

public setDiscountActive(bool $DiscountActive) : void
Parameters
$DiscountActive : bool
Return values
void

setDiscountAmount()

public setDiscountAmount(float $DiscountAmount) : void
Parameters
$DiscountAmount : float
Return values
void

setDiscountedPrice()

public setDiscountedPrice(float $DiscountedPrice) : void
Parameters
$DiscountedPrice : float
Return values
void

setDiscountPercent()

public setDiscountPercent(float $DiscountPercent) : void
Parameters
$DiscountPercent : float
Return values
void

setExpireDate()

public setExpireDate(DateTimeImmutable $ExpireDate) : void
Parameters
$ExpireDate : DateTimeImmutable
Return values
void

setNewPriceType()

public setNewPriceType(string $NewPriceType) : void
Parameters
$NewPriceType : string
Return values
void

setPriceType()

public setPriceType(string $PriceType) : void
Parameters
$PriceType : string
Return values
void

setQuantity()

public setQuantity(int|null $Quantity) : void
Parameters
$Quantity : int|null
Return values
void

setSavedAmount()

public setSavedAmount(float $SavedAmount) : void
Parameters
$SavedAmount : float
Return values
void

setShopID()

public setShopID(int $ShopID) : void
Parameters
$ShopID : int
Return values
void

setStartDate()

public setStartDate(DateTimeImmutable $StartDate) : void
Parameters
$StartDate : DateTimeImmutable
Return values
void

setType()

public setType(int $Type) : void
Parameters
$Type : int
Return values
void

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results