PriceRelation
Price relation table trait
Table of Contents
Methods
- getIsFreeAttribute() : bool
- Return true if item is free
- getPrice() : object|null
- Get price
- getPriceListClass() : string|null
- Get price list class
- getPriceValue() : float|null
- Get price value
- isFree() : bool
- Return true if product is free
- mainPrice() : Model|nulll
- Get main price
- prices() : Relation|null
- Price list relation
Methods
getIsFreeAttribute()
Return true if item is free
public
getIsFreeAttribute() : bool
Return values
boolgetPrice()
Get price
public
getPrice([string|null $key = null ][, string|null $currency = null ]) : object|null
Parameters
- $key : string|null = null
- $currency : string|null = null
Return values
object|nullgetPriceListClass()
Get price list class
public
getPriceListClass() : string|null
Return values
string|nullgetPriceValue()
Get price value
public
getPriceValue([string|null $key = null ][, string|null $currency = null ]) : float|null
Parameters
- $key : string|null = null
- $currency : string|null = null
Return values
float|nullisFree()
Return true if product is free
public
isFree() : bool
Return values
boolmainPrice()
Get main price
public
mainPrice() : Model|nulll
Return values
Model|nulllprices()
Price list relation
public
prices() : Relation|null