ValidatorInterface
in
Validator interface
Tags
Table of Contents
Methods
- evaluate() : bool
- Evaluate
- getDescription() : string|null
- Get the validator description
- getInput() : mixed
- Get the validator input
- getMessage() : string|null
- Get the validator default message
- getName() : string|null
- Get the validator name
- getResults() : mixed
- Get the validator results
- getValue() : mixed
- Get the validator value
- hasDescription() : bool
- Has validator description
- hasInput() : bool
- Has validator input
- hasMessage() : bool
- Has validator message
- hasName() : bool
- Has validator name
- hasResults() : bool
- Has validator results
- hasValue() : bool
- Has validator value
- setDescription() : static
- Set the validator description
- setInput() : ValidatorInterface
- Set the validator input
- setMessage() : ValidatorInterface
- Set the validator default message
- setName() : static
- Set the validator name
- setValue() : ValidatorInterface
- Set the validator value
Methods
evaluate()
Evaluate
public
evaluate([mixed $input = null ]) : bool
Parameters
- $input : mixed = null
Return values
boolgetDescription()
Get the validator description
public
getDescription() : string|null
Return values
string|nullgetInput()
Get the validator input
public
getInput() : mixed
getMessage()
Get the validator default message
public
getMessage() : string|null
Return values
string|nullgetName()
Get the validator name
public
getName() : string|null
Return values
string|nullgetResults()
Get the validator results
public
getResults() : mixed
getValue()
Get the validator value
public
getValue() : mixed
hasDescription()
Has validator description
public
hasDescription() : bool
Return values
boolhasInput()
Has validator input
public
hasInput() : bool
Return values
boolhasMessage()
Has validator message
public
hasMessage() : bool
Return values
boolhasName()
Has validator name
public
hasName() : bool
Return values
boolhasResults()
Has validator results
public
hasResults() : bool
Return values
boolhasValue()
Has validator value
public
hasValue() : bool
Return values
boolsetDescription()
Set the validator description
public
setDescription([string|null $description = null ]) : static
Parameters
- $description : string|null = null
Return values
staticsetInput()
Set the validator input
public
setInput([mixed $input = null ]) : ValidatorInterface
Parameters
- $input : mixed = null
Return values
ValidatorInterfacesetMessage()
Set the validator default message
public
setMessage([string|null $message = null ]) : ValidatorInterface
Parameters
- $message : string|null = null
Return values
ValidatorInterfacesetName()
Set the validator name
public
setName([string|null $name = null ]) : static
Parameters
- $name : string|null = null
Return values
staticsetValue()
Set the validator value
public
setValue(mixed $value) : ValidatorInterface
Parameters
- $value : mixed