Class ValidationChoice
Validates that the value pass in at least one of the given validators.
- Flikore\Validator\Validator implements Flikore\Validator\Interfaces\IValidator
- Flikore\Validator\ValidationChoice
Direct known subclasses
Namespace: Flikore\Validator
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.5.0
CustomKey: %vN% The message of the Nth validator (1-index).
Located at Flikore/Validator/ValidationChoice.php
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.5.0
CustomKey: %vN% The message of the Nth validator (1-index).
Located at Flikore/Validator/ValidationChoice.php
Methods summary
public
|
|
public
|
|
public
|
#
addKeyValue( string $key, string $value )
Adds a new key-value pair to be replaced by the templating engine. This does not check if it's replacing a specific validator value. |
protected
string
|
|
protected
boolean
|
Methods inherited from Flikore\Validator\Validator
assert()
,
getErrorMessage()
,
isEmpty()
,
setErrorMessage()
,
validate()
Magic methods summary
Properties summary
protected
|
$validators |
#
An array of validators to test. |
protected
string
|
$message |
#
The error message for this validator. |