The DataValueValidator class allows the validation of the plain value of a simple DataValues object based on the DataValue's array representation.
More...
The DataValueValidator class allows the validation of the plain value of a simple DataValues object based on the DataValue's array representation.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\DataValueValidator::__construct |
( |
ValueValidator | $validator | ) |
|
- Parameters
-
ValueValidator | $validator | The validator to apply to the given field |
◆ setOptions()
Wikibase\Repo\Validators\DataValueValidator::setOptions |
( |
array | $options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\DataValueValidator::validate |
( |
| $value | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
DataValue | $value | The value to validate |
- Exceptions
-
- Returns
- Result
◆ $validator
Wikibase\Repo\Validators\DataValueValidator::$validator |
|
private |
The documentation for this class was generated from the following file: