ProductGroupPrice

Implements \ProductGroupPriceInterface

Class ProductGroupPrice

category

System

package

ProductPrice

subpackage

ValueObjects

Methods

ProductGroupPrice constructor.

__construct(\IdType $customerGroupId, \DecimalType|null $groupPrice = null, \GraduatedPriceCollection|null $graduatedPrices = null) 

Arguments

$customerGroupId

\IdType

Customer group.

$groupPrice

\DecimalType|null

(Optional) Group price.

$graduatedPrices

\GraduatedPriceCollection|null

(Optional) Graduated prices.

Named constructor of product group price.

create(integer $customerGroupId, double|null $groupPrice = null, \GraduatedPriceCollection|null $graduatedPrices = null) : \ProductGroupPrice
static

Arguments

$customerGroupId

integer

Customer group.

$groupPrice

double|null

(Optional) Group price.

$graduatedPrices

\GraduatedPriceCollection|null

(Optional) Graduated prices.

Response

\ProductGroupPrice

New instance.

Returns the customer group id.

customerGroupId() : integer

Response

integer

Customer group id.

Returns the graduated prices.

graduatedPrices() : \GraduatedPriceCollection|null

Returns the group price.

groupPrice() : double|null

Response

double|null

Group price.

Properties

customerGroupId

customerGroupId : integer
var

Type(s)

integer

groupPrice

groupPrice : double|null
var

Type(s)

double|null

graduatedPrices

graduatedPrices : \GraduatedPriceCollection|null
var

Type(s)

\GraduatedPriceCollection|null