final class InlineCheck

A single inline validation check within a compiled rule plan.

Executed directly by PlanExecutor via exhaustive match over CheckType. Carries all data needed for both execution ($type, $param) and error message generation ($ruleName, $parameters).

Methods

__construct(CheckType $type, mixed $param = null, string $ruleName = '', array $parameters = [])

No description

string
getRuleName()

Get the rule name for addFailure() error message lookup.

Details

at line 26
__construct(CheckType $type, mixed $param = null, string $ruleName = '', array $parameters = [])

No description

Parameters

CheckType $type

identifies which executor arm runs this check

mixed $param

Literal arguments from the rule (e.g., max threshold, regex pattern, date target).

string $ruleName

Override for the rule name used in addFailure(). When empty, getRuleName() falls back to CheckType::ruleName().

array $parameters

Rule parameters for error message replacement (e.g., ['255'] for max:255).

at line 37
string getRuleName()

Get the rule name for addFailure() error message lookup.

Return Value

string