PriceRelation
trait PriceRelation
Price relation table trait
Methods
static void
bootPriceRelation()
Boot trait
boolean
createPriceList()
Price list
string|null
getPriceListClass()
Get price list class
Collection
getPriceListAttribute()
Create price_list attribute used for better collection serialization key => value
boolean
getIsFreeAttribute()
Return true if item is free
bool
IsFree()
Return true if product is free
Relation|null
price()
Price list relation
float|null
getPriceValue(string $key)
Get price value
Details
at line 24
static void
bootPriceRelation()
Boot trait
at line 36
boolean
createPriceList()
Price list
at line 53
string|null
getPriceListClass()
Get price list class
at line 63
Collection
getPriceListAttribute()
Create price_list attribute used for better collection serialization key => value
at line 77
boolean
getIsFreeAttribute()
Return true if item is free
at line 87
bool
IsFree()
Return true if product is free
at line 103
Relation|null
price()
Price list relation
at line 114
Model|null
getPrice(string $key)
Get price
at line 130
float|null
getPriceValue(string $key)
Get price value