WriteLoaderFactory
FinalYes
One instance per run, never shared; builds each branch step once.
Methods
- __construct() : mixed
- feed() : BranchLoader
- The step that feeds $branch's pipeline. Its writes report through the feed's offers, so a failure they offered is not offered again when it escapes the feed.
- step() : JoinStep|Loader|Processor|Transformer|NestedLoader
- transactional() : TransactionLoader
- One transaction around its writes; a failure of a write in it rolls the transaction back, so none is offered.
- write() : Loader|NestedLoader
- $write as the runtime runs it: a branch becomes the step that feeds it, a transaction the step that wraps its writes, the same one each time; a loader is itself.
Methods
__construct()
public
__construct() : mixed
feed()
The step that feeds $branch's pipeline. Its writes report through the feed's offers, so a failure they offered is not offered again when it escapes the feed.
public
feed(BranchPipeline $branch, ErrorHandler|null $handler, FlowContext $context) : BranchLoader
Parameters
- $branch : BranchPipeline
- $handler : ErrorHandler|null
- $context : FlowContext
Return values
BranchLoaderstep()
public
step(JoinStep|Loader|Processor|BranchPipeline|TransactionGroup|Transformer $step, ErrorHandler $handler, FlowContext $context) : JoinStep|Loader|Processor|Transformer|NestedLoader
Parameters
- $step : JoinStep|Loader|Processor|BranchPipeline|TransactionGroup|Transformer
- $handler : ErrorHandler
- $context : FlowContext
Return values
JoinStep|Loader|Processor|Transformer|NestedLoadertransactional()
One transaction around its writes; a failure of a write in it rolls the transaction back, so none is offered.
public
transactional(TransactionGroup $branch, FlowContext $context) : TransactionLoader
Parameters
- $branch : TransactionGroup
- $context : FlowContext
Return values
TransactionLoaderwrite()
$write as the runtime runs it: a branch becomes the step that feeds it, a transaction the step that wraps its writes, the same one each time; a loader is itself.
public
write(Loader|BranchPipeline|TransactionGroup $write, ErrorHandler $handler, FlowContext $context) : Loader|NestedLoader
Parameters
- $write : Loader|BranchPipeline|TransactionGroup
- $handler : ErrorHandler
- $context : FlowContext