BranchingLoader implements Closure, Discardable, Loader, OverridingLoader, ReplayAware
FinalYes
Interfaces
- Closure
- Loaders implementing this adapter will be additionally notified by the pipeline about the last set of Rows processed by the pipeline.
- Discardable
- Loaders implementing this adapter will be notified by the pipeline when a run ends without reaching its last set of Rows - it threw, or the caller walked away from the generator - and when their own closure() threw.
- Loader
- OverridingLoader
- Loaders implementing OverridingLoader interface overrides one or more loaders.
- ReplayAware
Methods
- __construct() : mixed
- closure() : void
- discard() : void
- load() : void
- loaders() : array<string|int, Loader>
- replaySafe() : bool
- withTransformation() : self
Methods
__construct()
public
__construct(ScalarFunction $condition, Loader $loader[, Transformation|null $transformation = null ]) : mixed
Parameters
- $condition : ScalarFunction
- $loader : Loader
- $transformation : Transformation|null = null
closure()
public
closure(FlowContext $context) : void
Parameters
- $context : FlowContext
discard()
public
discard(FlowContext $context) : void
Parameters
- $context : FlowContext
load()
public
load(Rows $rows, FlowContext $context) : void
Parameters
- $rows : Rows
- $context : FlowContext
loaders()
public
loaders() : array<string|int, Loader>
Return values
array<string|int, Loader>replaySafe()
public
replaySafe() : bool
Return values
boolwithTransformation()
public
withTransformation(Transformation $transformation) : self
Parameters
- $transformation : Transformation