class Transaction

Entity Transaction (linked to DB table user_transactions)

Properties

protected int $id Transaction unique id
protected string $orderId OrdreId for the Transaction
protected int $credits Credits added or subtracted
protected string $description Description for the Transaction
protected int $userId User unique id
protected string $userIp User IP address
protected DateTime $creation DateTime creation for the Transaction

Methods

int
getId()

Get id

setOrderId(string|null $orderId)

Set orderId

string|null
getOrderId()

Get orderId

setCredits(int|null $credits)

Set credits

int
getCredits()

Get credits

setDescription(string|null $description)

Set description

string|null
getDescription()

Get description

setUserId(int|null $userId)

Set userId

int
getUserId()

Get userId

setUserIp(string|null $userIp)

Set userIp

string|null
getUserIp()

Get userIp

setCreation(DateTime|null $creation)

Set creation

getCreation()

Get creation

Details

at line 86
int getId()

Get id

Return Value

int

at line 96
Transaction setOrderId(string|null $orderId)

Set orderId

Parameters

string|null $orderId

Return Value

Transaction

at line 107
string|null getOrderId()

Get orderId

Return Value

string|null

at line 117
Transaction setCredits(int|null $credits)

Set credits

Parameters

int|null $credits

Return Value

Transaction

at line 128
int getCredits()

Get credits

Return Value

int

at line 138
Transaction setDescription(string|null $description)

Set description

Parameters

string|null $description

Return Value

Transaction

at line 149
string|null getDescription()

Get description

Return Value

string|null

at line 159
Transaction setUserId(int|null $userId)

Set userId

Parameters

int|null $userId

Return Value

Transaction

at line 170
int getUserId()

Get userId

Return Value

int

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

Set userIp

Parameters

string|null $userIp

Return Value

Transaction

at line 191
string|null getUserIp()

Get userIp

Return Value

string|null

at line 201
Transaction setCreation(DateTime|null $creation)

Set creation

Parameters

DateTime|null $creation

Return Value

Transaction

at line 212
DateTime getCreation()

Get creation

Return Value

DateTime