ArrayValidator
in package
implements
ITypeValidator
Read onlyYes
FinalYes
Table of Contents
Interfaces
- ITypeValidator
- Ensures that the given app data is of the model's allowed types and satisfies other constraints of the model.
Properties
Methods
- __construct() : mixed
- validate() : TypeViolation)
- Validates that the given value is not null if the model does not allow null values, that it is an an array and that it only defines the keys associated with a property and all of the keys, and that the values associated with the key fit the corresponding property's model.
Properties
$model
private
ArrayModel
$model
Methods
__construct()
public
__construct(ArrayModel $model) : mixed
Parameters
- $model : ArrayModel
validate()
Validates that the given value is not null if the model does not allow null values, that it is an an array and that it only defines the keys associated with a property and all of the keys, and that the values associated with the key fit the corresponding property's model.
public
validate(mixed $value) : TypeViolation)
Parameters
- $value : mixed
Attributes
- #[Override]