Flow PHP

CompilableMatcher extends Matcher

A {@see Matcher} that can render itself as an inlined PHP boolean expression, letting {@see CompiledMatcher} compile the whole matcher tree to a cached PHP file instead of evaluating it through {@see Matcher::matches()}.

Methods

compile()  : string
Render this matcher as a PHP boolean expression operating on the attribute variable named by {@see Compilation::$subject} (e.g. '$a').
matches()  : bool

Methods

compile()

Render this matcher as a PHP boolean expression operating on the attribute variable named by {@see Compilation::$subject} (e.g. '$a').

public compile(Compilation $compilation) : string
Parameters
$compilation : Compilation
Tags
throws
NotCompilable

when this matcher (or a nested matcher) cannot be represented as inlined PHP; the filter then falls back to interpreted matching

Return values
string
On this page

Search results