GraduatedPrice
in package
implements
GraduatedPriceInterface
Class GraduatedPrice
Tags
Interfaces, Classes and Traits
- GraduatedPriceInterface
- Interface GraduatedPriceInterface
Table of Contents
- $graduatedPrice : float
- $taxClassId : int
- $threshold : float
- __construct() : mixed
- GraduatedPrice constructor.
- create() : GraduatedPrice
- Named Constructor of graduated price.
- createWithThreshold() : GraduatedPrice
- Creates a new instance with threshold value.
- graduatedPrice() : float
- Returns the graduated price.
- taxClassId() : int
- Returns the tax class id.
- threshold() : float
- Returns the threshold of the graduated price.
Properties
$graduatedPrice
protected
float
$graduatedPrice
$taxClassId
protected
int
$taxClassId
$threshold
protected
float
$threshold
Methods
__construct()
GraduatedPrice constructor.
public
__construct(DecimalType $graduatedPrice[, IdType $taxClassId = null ][, DecimalType $threshold = null ]) : mixed
Parameters
- $graduatedPrice : DecimalType
-
Graduated price.
- $taxClassId : IdType = null
-
Tax class id,
- $threshold : DecimalType = null
-
Threshold.
Return values
mixed —create()
Named Constructor of graduated price.
public
static create(Double $graduatedPrice, int $taxClassId) : GraduatedPrice
Parameters
- $graduatedPrice : Double
-
Graduated price.
- $taxClassId : int
Return values
GraduatedPrice —New instance.
createWithThreshold()
Creates a new instance with threshold value.
public
static createWithThreshold(Double $graduatedPrice, Double $threshold) : GraduatedPrice
Parameters
- $graduatedPrice : Double
-
Graduated price.
- $threshold : Double
-
Threshold.
Return values
GraduatedPrice —New instance.
graduatedPrice()
Returns the graduated price.
public
graduatedPrice() : float
Return values
float —Graduated price.
taxClassId()
Returns the tax class id.
public
taxClassId() : int
Return values
int —Tax class id.
threshold()
Returns the threshold of the graduated price.
public
threshold() : float
Return values
float —Graduated price´s quantity.