class AnyOf extends ObjectValidationAttribute

Methods

static string
keyword()

Get the Validator rule keyword.

create(string ...$parameters)

Reject string-based any-of rule construction.

string
__toString()

Get the rule in Validator string form.

parseFieldReference(string|FieldReference $reference)

Parse a field reference.

mixed
normalizePossibleExternalReferenceParameter(mixed $parameter)

Resolve a possible external reference parameter.

object|string
getRule(ValidationPath $path)

Get the Validator rule object.

__construct(array $rules)

Create an any-of rule attribute.

Details

at line 34
static string keyword()

Get the Validator rule keyword.

Return Value

string

at line 42
static ValidationAttribute create(string ...$parameters)

Reject string-based any-of rule construction.

Parameters

string ...$parameters

Return Value

ValidationAttribute

string __toString()

Get the rule in Validator string form.

Return Value

string

protected FieldReference parseFieldReference(string|FieldReference $reference)

Parse a field reference.

Parameters

string|FieldReference $reference

Return Value

FieldReference

protected mixed normalizePossibleExternalReferenceParameter(mixed $parameter)

Resolve a possible external reference parameter.

Parameters

mixed $parameter

Return Value

mixed

at line 26
object|string getRule(ValidationPath $path)

Get the Validator rule object.

Parameters

ValidationPath $path

Return Value

object|string

at line 19
__construct(array $rules)

Create an any-of rule attribute.

Parameters

array $rules