A CompositeValidator uses a list of sub-validators to validate the data.
More...
A CompositeValidator uses a list of sub-validators to validate the data.
It does not implement any validation logic directly.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\CompositeValidator::__construct |
( |
array |
$validators, |
|
|
|
$failFast = true |
|
) |
| |
- Parameters
-
ValueValidator[] | $validators | |
bool | $failFast | If true, validation will be aborted after the first sub validator fails. |
◆ setOptions()
Wikibase\Repo\Validators\CompositeValidator::setOptions |
( |
array |
$options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\CompositeValidator::validate |
( |
|
$value | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
mixed | $value | The value to validate |
- Returns
- Result
◆ $failFast
Wikibase\Repo\Validators\CompositeValidator::$failFast |
|
private |
◆ $validators
Wikibase\Repo\Validators\CompositeValidator::$validators |
|
private |
The documentation for this class was generated from the following file: