RegEx
extends AbstractValidator
in package
RegEx validator class
Tags
Table of Contents
- $input : mixed
- Input value to test
- $message : string
- Validator message
- $numberToSatisfy : int
- Number of regex's that need to be satisgied
- $value : mixed
- Validator value to test against
- __construct() : mixed
- Constructor
- evaluate() : bool
- Method to evaluate the validator
- getInput() : mixed
- GEt the validator input
- getMessage() : bool
- Get the validator default message
- getNumberToSatisfy() : int
- Get the number to satisfy
- getValue() : mixed
- Get the validator value
- setInput() : AbstractValidator
- Set the validator input
- setMessage() : AbstractValidator
- Set the validator condition
- setNumberToSatisfy() : RegEx
- Set the number to satisfy
- setValue() : AbstractValidator
- Set the validator value
Properties
$input
Input value to test
protected
mixed
$input
= null
$message
Validator message
protected
string
$message
= null
$numberToSatisfy
Number of regex's that need to be satisgied
protected
int
$numberToSatisfy
= null
$value
Validator value to test against
protected
mixed
$value
= null
Methods
__construct()
Constructor
public
__construct([mixed $value = null ][, string $message = null ][, int $numberToSatisfy = null ]) : mixed
Instantiate the validator object
Parameters
- $value : mixed = null
- $message : string = null
- $numberToSatisfy : int = null
Return values
mixed —evaluate()
Method to evaluate the validator
public
evaluate([mixed $input = null ]) : bool
Parameters
- $input : mixed = null
Return values
bool —getInput()
GEt the validator input
public
getInput() : mixed
Return values
mixed —getMessage()
Get the validator default message
public
getMessage() : bool
Return values
bool —getNumberToSatisfy()
Get the number to satisfy
public
getNumberToSatisfy() : int
Return values
int —getValue()
Get the validator value
public
getValue() : mixed
Return values
mixed —setInput()
Set the validator input
public
setInput([mixed $input = null ]) : AbstractValidator
Parameters
- $input : mixed = null
Return values
AbstractValidator —setMessage()
Set the validator condition
public
setMessage([string $msg = null ]) : AbstractValidator
Parameters
- $msg : string = null
Return values
AbstractValidator —setNumberToSatisfy()
Set the number to satisfy
public
setNumberToSatisfy(int $numberToSatisfy) : RegEx
Parameters
- $numberToSatisfy : int
Return values
RegEx —setValue()
Set the validator value
public
setValue(mixed $value) : AbstractValidator
Parameters
- $value : mixed