Documentation

CheckoutAddon
in package
implements CheckoutAddon

Class CheckoutAddon

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\CheckoutAddonRepository")

ORM\Table

(name="checkout_addon")

Table of Contents

Interfaces

CheckoutAddon

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
ORM\Column

(type="boolean", name="active", nullable=false)

$id

private int|null $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer", name="id")

$isRecurring

private bool $isRecurring
Tags
ORM\Column

(type="boolean", name="is_recurring", nullable=false)

$periodUnitId

private int|null $periodUnitId
Tags
ORM\Column

(type="integer", name="period_unit_id", nullable=true)

$textId

private string $textId
Tags
ORM\Column

(type="string", name="textid", nullable=false)

$unitPrice

private int $unitPrice
Tags
ORM\Column

(type="integer", name="unit_price", nullable=false)

Methods

getActive()

Get the value of active

public getActive() : bool
Return values
bool

getAddonIdByTextId()

public static getAddonIdByTextId(string $textId) : mixed
Parameters
$textId : string

getId()

Get $id

public getId() : int|null
Return values
int|null

getIsRecurring()

Get the value of isRecurring

public getIsRecurring() : bool
Return values
bool

getPeriodUnitId()

Get the value of periodUnitId

public getPeriodUnitId() : int|null
Return values
int|null

getPeriodUnitIdByPeriodUnitName()

public static getPeriodUnitIdByPeriodUnitName(string $name) : mixed
Parameters
$name : string

getTextId()

Get the value of textId

public getTextId() : string
Return values
string

getTextIdByAddonId()

public static getTextIdByAddonId(int $addonId) : mixed
Parameters
$addonId : int

getUnitPrice()

Get the value of unitPrice

public getUnitPrice() : int
Return values
int

setActive()

Set the value of active

public setActive(bool $active) : self
Parameters
$active : bool
Return values
self

setUnitPrice()

Set the value of unitPrice

public setUnitPrice(int $unitPrice) : self
Parameters
$unitPrice : int
Return values
self

        
On this page

Search results