ProductGroupPrice
in package
implements
ProductGroupPriceInterface
Class ProductGroupPrice
Tags
Interfaces, Classes and Traits
- ProductGroupPriceInterface
- Interface ProductGroupPriceInterface
Table of Contents
- $customerGroupId : int
- $graduatedPrices : GraduatedPriceCollection|null
- $groupPrice : float|null
- __construct() : mixed
- ProductGroupPrice constructor.
- create() : ProductGroupPrice
- Named constructor of product group price.
- customerGroupId() : int
- Returns the customer group id.
- graduatedPrices() : GraduatedPriceCollection|null
- Returns the graduated prices.
- groupPrice() : float|null
- Returns the group price.
Properties
$customerGroupId
protected
int
$customerGroupId
$graduatedPrices
protected
GraduatedPriceCollection|null
$graduatedPrices
$groupPrice
protected
float|null
$groupPrice
Methods
__construct()
ProductGroupPrice constructor.
public
__construct(IdType $customerGroupId[, DecimalType|null $groupPrice = null ][, GraduatedPriceCollection|null $graduatedPrices = null ]) : mixed
Parameters
- $customerGroupId : IdType
-
Customer group.
- $groupPrice : DecimalType|null = null
-
(Optional) Group price.
- $graduatedPrices : GraduatedPriceCollection|null = null
-
(Optional) Graduated prices.
Return values
mixed —create()
Named constructor of product group price.
public
static create(int $customerGroupId[, float|null $groupPrice = null ][, GraduatedPriceCollection|null $graduatedPrices = null ]) : ProductGroupPrice
Parameters
- $customerGroupId : int
-
Customer group.
- $groupPrice : float|null = null
-
(Optional) Group price.
- $graduatedPrices : GraduatedPriceCollection|null = null
-
(Optional) Graduated prices.
Return values
ProductGroupPrice —New instance.
customerGroupId()
Returns the customer group id.
public
customerGroupId() : int
Return values
int —Customer group id.
graduatedPrices()
Returns the graduated prices.
public
graduatedPrices() : GraduatedPriceCollection|null
Return values
GraduatedPriceCollection|null —groupPrice()
Returns the group price.
public
groupPrice() : float|null
Return values
float|null —Group price.