class Exclude extends ObjectValidationAttribute

Methods

static string
keyword()

Get the Validator rule keyword.

create(string ...$parameters)

Create the attribute from parsed string parameters.

string
__toString()

Get the rule in Validator string form.

static mixed
parseDateValue(mixed $value)

Parse a validation date value.

static mixed
parseBooleanValue(mixed $value)

Parse a validation boolean value.

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 or string.

__construct(ExcludeIf|null $rule = null)

Create a new exclude validation attribute.

Details

at line 32
static string keyword()

Get the Validator rule keyword.

Return Value

string

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

Create the attribute from parsed string parameters.

Parameters

string ...$parameters

Return Value

ValidationAttribute

string __toString()

Get the rule in Validator string form.

Return Value

string

static protected mixed parseDateValue(mixed $value)

Parse a validation date value.

Parameters

mixed $value

Return Value

mixed

static protected mixed parseBooleanValue(mixed $value)

Parse a validation boolean value.

Parameters

mixed $value

Return Value

mixed

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 24
object|string getRule(ValidationPath $path)

Get the Validator rule object or string.

Parameters

ValidationPath $path

Return Value

object|string

at line 17
__construct(ExcludeIf|null $rule = null)

Create a new exclude validation attribute.

Parameters

ExcludeIf|null $rule