ListValidator
extends AbstractTypeValidator
in package
Read onlyYes
FinalYes
Validator for app data.
Validates the data is not null if the model does not allow that, that it is of the correct type and that the value is allowed.
Table of Contents
Properties
Methods
- __construct() : mixed
- validate() : null|TypeViolation|ValueViolation
- validateNonNullValue() : null|TypeViolation|ValueViolation
Properties
$model
private
ListModel|EntityListModel
$model
Methods
__construct()
public
__construct(ListModel|EntityListModel $model) : mixed
Parameters
- $model : ListModel|EntityListModel
validate()
public
validate(mixed $value) : null|TypeViolation|ValueViolation
Parameters
- $value : mixed
Attributes
- #[Override]
Return values
null|TypeViolation|ValueViolationvalidateNonNullValue()
public
validateNonNullValue(array<string|int, mixed>|bool|float|int|object|string $value) : null|TypeViolation|ValueViolation
Parameters
- $value : array<string|int, mixed>|bool|float|int|object|string
Attributes
- #[Override]