Documentation

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

$model  : ArrayModel

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

Methods

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]
Return values
TypeViolation)
On this page

Search results