Transaction
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
getCreation()
Get creation
Details
at line 86
int
getId()
Get id
at line 96
Transaction
setOrderId(string|null $orderId)
Set orderId
at line 107
string|null
getOrderId()
Get orderId
at line 117
Transaction
setCredits(int|null $credits)
Set credits
at line 128
int
getCredits()
Get credits
at line 138
Transaction
setDescription(string|null $description)
Set description
at line 149
string|null
getDescription()
Get description
at line 159
Transaction
setUserId(int|null $userId)
Set userId
at line 170
int
getUserId()
Get userId
at line 180
Transaction
setUserIp(string|null $userIp)
Set userIp
at line 191
string|null
getUserIp()
Get userIp
at line 201
Transaction
setCreation(DateTime|null $creation)
Set creation
at line 212
DateTime
getCreation()
Get creation