Transaction implements ITransaction
Transactions are executed in the order they were received.
beginTransaction, commit and rollback do nothing.
Table of Contents
$units | ||
---|---|---|
__construct() | mixed | |
beginTransaction() | Begins a transaction | void |
rollBack() | Rolls back an uncommitted transaction | void |
commit() | Commits a transaction after beginTransaction has been called | void |
run() | Executes the code that is part of the transaction | void |
Properties
$units
private
mixed
$units
Methods
__construct()
public
__construct(
...$units :
IRunnable
)
: mixed
Parameters
- $units : IRunnable
Return values
mixedbeginTransaction()
Begins a transaction
public
beginTransaction(
)
: void
rollBack()
Rolls back an uncommitted transaction
public
rollBack(
)
: void
commit()
Commits a transaction after beginTransaction has been called
public
commit(
)
: void
Tags
run()
Executes the code that is part of the transaction
public
run(
)
: void