Methods |
public
|
__construct(string $connection, int $level, DatabaseTransactionRecord|null $parent = null)
Create a new database transaction record instance.
Create a new database transaction record instance.
|
#
|
public
|
addCallback(callable $callback): void
Register a callback to be executed after committing.
Register a callback to be executed after committing.
|
#
|
public
|
addCallbackForRollback(callable $callback): void
Register a callback to be executed after rollback.
Register a callback to be executed after rollback.
|
#
|
public
|
executeCallbacks(): void
Execute all of the callbacks.
Execute all of the callbacks.
|
#
|
public
|
executeCallbacksForRollback(): void
Execute all of the callbacks for rollback.
Execute all of the callbacks for rollback.
|
#
|
public
|
getCallbacks(): array
Get all of the callbacks.
Get all of the callbacks.
|
#
|
public
|
getCallbacksForRollback(): array
Get all of the callbacks for rollback.
Get all of the callbacks for rollback.
|
#
|