GraduatedPrice

Implements \GraduatedPriceInterface

Class GraduatedPrice

category

System

package

ProductPrice

subpackage

ValueObjects

Methods

GraduatedPrice constructor.

__construct(\DecimalType $graduatedPrice, \IdType $taxClassId = null, \DecimalType $threshold = null) 

Arguments

$graduatedPrice

\DecimalType

Graduated price.

$taxClassId

\IdType

Tax class id,

$threshold

\DecimalType

Threshold.

Named Constructor of graduated price.

create(\Double $graduatedPrice, \int $taxClassId) : \GraduatedPrice
static

Arguments

$graduatedPrice

\Double

Graduated price.

$taxClassId

\int

Response

\GraduatedPrice

New instance.

Creates a new instance with threshold value.

createWithThreshold(\Double $graduatedPrice, \Double $threshold) : \GraduatedPrice
static

Arguments

$graduatedPrice

\Double

Graduated price.

$threshold

\Double

Threshold.

Response

\GraduatedPrice

New instance.

Returns the graduated price.

graduatedPrice() : double

Response

double

Graduated price.

Returns the tax class id.

taxClassId() : integer

Response

integer

Tax class id.

Returns the threshold of the graduated price.

threshold() : double

Response

double

Graduated price´s quantity.

Properties

threshold

threshold : double
var

Type(s)

double

graduatedPrice

graduatedPrice : double
var

Type(s)

double

taxClassId

taxClassId : integer
var

Type(s)

integer