ProductPrice

Implements \ProductPriceInterface

Class ProductPrice

category

System

package

ProductPrice

subpackage

ValueObjects

Methods

ProductPrice constructor.

__construct(\IdType $productId, \DecimalType $price, \IdType $taxClassId = null, \ProductGroupPriceCollection|null $groupPrices = null) 

Arguments

$productId

\IdType

Product id.

$price

\DecimalType

Product default price.

$taxClassId

\IdType

$groupPrices

\ProductGroupPriceCollection|null

Product's group price.

Named constructor of product price.

create(integer $productId, double $price, integer $taxClassId, \ProductGroupPriceCollection|null $groupPrices = null) : \ProductPrice
static

Arguments

$productId

integer

Product id.

$price

double

Product default price.

$taxClassId

integer

$groupPrices

\ProductGroupPriceCollection|null

Product's group price.

Response

\ProductPrice

New instance

createWithoutTaxClassId

createWithoutTaxClassId( $productId,  $price, \ProductGroupPriceCollection $groupPrices = null) 
static

Arguments

$productId

$price

Returns the group prices.

groupPrices() : \ProductGroupPriceCollection|null

Returns the product price

price() : double

Response

double

Product price.

Returns the product id.

productId() : integer

Response

integer

Product id.

Returns the tax class id.

taxClassId() : integer

Response

integer

Tax class id.

Properties

productId

productId : integer
var

Type(s)

integer

price

price : double
var

Type(s)

double

int

taxClassId : 

Type(s)

groupPrices

groupPrices : \ProductGroupPriceCollection|null
var

Type(s)

\ProductGroupPriceCollection|null