class PurchaseCredits

Entity PurchaseCredits (not linked to DB)

Properties

protected int $credits Number of PurchasedCredits
protected int $amount Amount in cents for the PurchasedCredits
protected int $currency Currency for the amount paid for PurchasedCredits
protected string $userIp User IP address

Methods

setCredits(int|null $credits)

Set credits

int|null
getCredits()

Get credits

setAmount(int|null $amount)

Set amount

int|null
getAmount()

Get amount

setCurrency(string|null $currency)

Set currency

string|null
getCurrency()

Get currency

setUserIp(string|null $userIp)

Set userIp

string|null
getUserIp()

Get userIp

Details

at line 47
PurchaseCredits setCredits(int|null $credits)

Set credits

Parameters

int|null $credits

Return Value

PurchaseCredits

at line 58
int|null getCredits()

Get credits

Return Value

int|null

at line 68
PurchaseCredits setAmount(int|null $amount)

Set amount

Parameters

int|null $amount

Return Value

PurchaseCredits

at line 79
int|null getAmount()

Get amount

Return Value

int|null

at line 89
PurchaseCredits setCurrency(string|null $currency)

Set currency

Parameters

string|null $currency

Return Value

PurchaseCredits

at line 100
string|null getCurrency()

Get currency

Return Value

string|null

at line 110
Transaction setUserIp(string|null $userIp)

Set userIp

Parameters

string|null $userIp

Return Value

Transaction

at line 121
string|null getUserIp()

Get userIp

Return Value

string|null