CategoryPriceInterface
extends
PaymentRegionScopedInterface
in
Advert category price in a payment region and currency; the "From …" price on the list is computed from it ({@see \App\Core\Base\Shared\Bazaar\Models\Entities\Category::getMinPriceForPaymentRegion()}).
Table of Contents
Methods
- getActive() : bool
- getCategoryId() : int|null
- getCurrencyId() : int|null
- getPaymentGateId() : int|null
- getPaymentRegionId() : int|null
- getPrice() : string
- Returns the price as a decimal string.
- getPriceForUnlogged() : string|null
- isActive() : bool
- Returns whether the price counts; an inactive price (gateway disabled in the region) is excluded from the minimum.
- setActive() : self
- setCategoryId() : self
- setCurrencyId() : self
- setPaymentGateId() : self
- setPaymentRegionId() : self
- setPrice() : self
- setPriceForUnlogged() : self
Methods
getActive()
public
getActive() : bool
Return values
boolgetCategoryId()
public
getCategoryId() : int|null
Return values
int|nullgetCurrencyId()
public
getCurrencyId() : int|null
Return values
int|nullgetPaymentGateId()
public
getPaymentGateId() : int|null
Return values
int|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPrice()
Returns the price as a decimal string.
public
getPrice() : string
Return values
stringgetPriceForUnlogged()
public
getPriceForUnlogged() : string|null
Return values
string|nullisActive()
Returns whether the price counts; an inactive price (gateway disabled in the region) is excluded from the minimum.
public
isActive() : bool
Return values
boolsetActive()
public
setActive(bool $active) : self
Parameters
- $active : bool
Return values
selfsetCategoryId()
public
setCategoryId(int|null $categoryId) : self
Parameters
- $categoryId : int|null
Return values
selfsetCurrencyId()
public
setCurrencyId(int|null $currencyId) : self
Parameters
- $currencyId : int|null
Return values
selfsetPaymentGateId()
public
setPaymentGateId(int|null $paymentGateId) : self
Parameters
- $paymentGateId : int|null
Return values
selfsetPaymentRegionId()
public
setPaymentRegionId(int|null $paymentRegionId) : self
Parameters
- $paymentRegionId : int|null
Return values
selfsetPrice()
public
setPrice(string $price) : self
Parameters
- $price : string
Return values
selfsetPriceForUnlogged()
public
setPriceForUnlogged(string|null $priceForUnlogged) : self
Parameters
- $priceForUnlogged : string|null