Flow PHP

TransactionLoader implements NestedLoader

Read onlyYes
FinalYes

The planner's step for a transaction root: one transaction per batch, one around the drain.

Interfaces

NestedLoader
Not a Loader: it is never described, and it returns its outcome to the runner instead of throwing it.

Methods

__construct()  : mixed
closure()  : void
The endings path offers nothing, so nothing is wrapped: a failing drain surfaces as the user's own exception.
discard()  : void
No transaction: nothing is written on a dead run.
load()  : LoadingError|TransformationError|null
Rolls back on any failure. A failure no user step raised - begin, commit, an unoffered branch failure - surfaces as it is.

Methods

closure()

The endings path offers nothing, so nothing is wrapped: a failing drain surfaces as the user's own exception.

public closure() : void

discard()

No transaction: nothing is written on a dead run.

public discard() : void

load()

Rolls back on any failure. A failure no user step raised - begin, commit, an unoffered branch failure - surfaces as it is.

public load(Rows $rows) : LoadingError|TransformationError|null
Parameters
$rows : Rows
Return values
LoadingError|TransformationError|null —

the failure no handler has decided yet, for the caller to offer once; null when written. A thrown failure surfaces as it is: a handler decided it, or no user step raised it.

On this page

Search results