phpDocumentor

GraduatedPrice implements GraduatedPriceInterface

Class GraduatedPrice

Tags
category

System

subpackage

ValueObjects

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

Methods

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.

Search results