Wikibase
MediaWiki Wikibase extension
|
A CompositeValidator uses a list of sub-validators to validate the data. More...
Public Member Functions | |
__construct (array $validators, $failFast=true) | |
validate ( $value) | |
setOptions (array $options) | |
Private Attributes | |
$validators | |
$failFast | |
A CompositeValidator uses a list of sub-validators to validate the data.
It does not implement any validation logic directly.
Wikibase\Repo\Validators\CompositeValidator::__construct | ( | array | $validators, |
$failFast = true ) |
ValueValidator[] | $validators | |
bool | $failFast | If true, validation will be aborted after the first sub validator fails. |
Wikibase\Repo\Validators\CompositeValidator::setOptions | ( | array | $options | ) |
array | $options |
Wikibase\Repo\Validators\CompositeValidator::validate | ( | $value | ) |
mixed | $value | The value to validate |
|
private |
|
private |