Flow PHP

Optimizer

Read onlyYes
FinalYes

Methods

__construct()  : mixed
default()  : self
optimize()  : LogicalPlan
Rewrites every join's right side as a plan of its own, then $plan with every rule, in order.
rules()  : array<int, Rule>
with()  : self
This optimizer's rules followed by $rules, run after them in the given order.
without()  : self
This optimizer's rules, minus the named ones - so a caller drops one rule without freezing the list and silently missing every rule added later.

Methods

default()

public static default() : self
Return values
self

with()

This optimizer's rules followed by $rules, run after them in the given order.

public with(Rule ...$rules) : self
Parameters
$rules : Rule
Tags
throws
InvalidArgumentException

when a rule of the same class is already registered

Return values
self

without()

This optimizer's rules, minus the named ones - so a caller drops one rule without freezing the list and silently missing every rule added later.

public without(Rule> ...$rules) : self
Parameters
$rules : Rule>
Tags
throws
InvalidArgumentException

when a name is not a registered rule

Return values
self
On this page

Search results