CoolCMS API

TariffQuickPriceCollectionTrait

Accessor names must mirror the property name `$quickPrices`.

Both the API extractor (OrmEntityHydrator) and the front hydrator (EntityHydrator) resolve a relation by get/set + ucfirst(property). While these methods were named getTariffQuickPrices() / setTariffQuickPrices(), includes: ['quickPrices'] silently resolved to an empty collection — no error, no log — in the front detail AND in the admin tariff form. Sibling TariffPriceCollectionTrait always had the matching getPrices().

Tags
template

Table of Contents

Properties

$quickPrices  : Collection<int, TQuickPrice>

Methods

addQuickPrice()  : $this
clearQuickPrices()  : $this
getQuickPrice()  : TQuickPrice|null
getQuickPrices()  : Collection<int, TQuickPrice>
removeQuickPrice()  : $this
setQuickPrices()  : $this
tariffQuickPriceCollectionInit()  : void

Properties

Methods

getQuickPrice()

public getQuickPrice(int $paymentRegionId) : TQuickPrice|null
Parameters
$paymentRegionId : int
Return values
TQuickPrice|null

removeQuickPrice()

public removeQuickPrice(TQuickPrice $quickPrice) : $this
Parameters
$quickPrice : TQuickPrice
Return values
$this

setQuickPrices()

public setQuickPrices(Collection<int, TQuickPrice>|array<int, TQuickPrice> $quickPrices) : $this
Parameters
$quickPrices : Collection<int, TQuickPrice>|array<int, TQuickPrice>
Return values
$this
On this page

Search results