final class RuleRegistry (View source)

Constants

private BUILT_IN_RULES

Methods

static array

Returns the canonical framework-owned rule catalog.

array
bool
has(string $name)
bool
get(string $name)

Details

builtInRules

static array builtInRules()

Returns the canonical framework-owned rule catalog.

Return Value

array

has

bool has(string $name)

No description

Parameters

string $name

Return Value

bool

addRule

RuleRegistry addRule(string $name, string|ValidationRuleInterface $rule)

No description

Parameters

string $name
string|ValidationRuleInterface $rule

Return Value

RuleRegistry

get

string|ValidationRuleInterface|null get(string $name)

No description

Parameters

string $name

Return Value

string|ValidationRuleInterface|null