TypeValidator checks a value's data type.
More...
TypeValidator checks a value's data type.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\TypeValidator::__construct |
( |
|
$type | ) |
|
Constructs a TypeValidator that checks for the given type.
- Parameters
-
string | $type | A PHP type name or a class name. |
◆ setOptions()
Wikibase\Repo\Validators\TypeValidator::setOptions |
( |
array |
$options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\TypeValidator::validate |
( |
|
$value | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
mixed | $value | The value to validate |
- Returns
- Result
◆ $type
Wikibase\Repo\Validators\TypeValidator::$type |
|
private |
The documentation for this class was generated from the following file: