CheckoutAddon
in package
implements
CheckoutAddon
Class CheckoutAddon
Tags
Table of Contents
Interfaces
Properties
- $active : bool
- $id : int|null
- $isRecurring : bool
- $periodUnitId : int|null
- $textId : string
- $unitPrice : int
Methods
- getActive() : bool
- Get the value of active
- getAddonIdByTextId() : mixed
- getId() : int|null
- Get $id
- getIsRecurring() : bool
- Get the value of isRecurring
- getPeriodUnitId() : int|null
- Get the value of periodUnitId
- getPeriodUnitIdByPeriodUnitName() : mixed
- getTextId() : string
- Get the value of textId
- getTextIdByAddonId() : mixed
- getUnitPrice() : int
- Get the value of unitPrice
- setActive() : self
- Set the value of active
- setUnitPrice() : self
- Set the value of unitPrice
Properties
$active
private
bool
$active
Tags
$id
private
int|null
$id
Tags
$isRecurring
private
bool
$isRecurring
Tags
$periodUnitId
private
int|null
$periodUnitId
Tags
$textId
private
string
$textId
Tags
$unitPrice
private
int
$unitPrice
Tags
Methods
getActive()
Get the value of active
public
getActive() : bool
Return values
boolgetAddonIdByTextId()
public
static getAddonIdByTextId(string $textId) : mixed
Parameters
- $textId : string
getId()
Get $id
public
getId() : int|null
Return values
int|nullgetIsRecurring()
Get the value of isRecurring
public
getIsRecurring() : bool
Return values
boolgetPeriodUnitId()
Get the value of periodUnitId
public
getPeriodUnitId() : int|null
Return values
int|nullgetPeriodUnitIdByPeriodUnitName()
public
static getPeriodUnitIdByPeriodUnitName(string $name) : mixed
Parameters
- $name : string
getTextId()
Get the value of textId
public
getTextId() : string
Return values
stringgetTextIdByAddonId()
public
static getTextIdByAddonId(int $addonId) : mixed
Parameters
- $addonId : int
getUnitPrice()
Get the value of unitPrice
public
getUnitPrice() : int
Return values
intsetActive()
Set the value of active
public
setActive(bool $active) : self
Parameters
- $active : bool
Return values
selfsetUnitPrice()
Set the value of unitPrice
public
setUnitPrice(int $unitPrice) : self
Parameters
- $unitPrice : int