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

Model|null
getPrice(string $key)

Get price

float|null
getPriceValue(string $key)

Get price value

Details

at line 24
static void bootPriceRelation()

Boot trait

Return Value

void

at line 36
boolean createPriceList()

Price list

Return Value

boolean

at line 53
string|null getPriceListClass()

Get price list class

Return Value

string|null

at line 63
Collection getPriceListAttribute()

Create price_list attribute used for better collection serialization key => value

Return Value

Collection

at line 77
boolean getIsFreeAttribute()

Return true if item is free

Return Value

boolean

at line 87
bool IsFree()

Return true if product is free

Return Value

bool

at line 103
Relation|null price()

Price list relation

Return Value

Relation|null

at line 114
Model|null getPrice(string $key)

Get price

Parameters

string $key

Return Value

Model|null

at line 130
float|null getPriceValue(string $key)

Get price value

Parameters

string $key

Return Value

float|null