Documentation

BoolValidator 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

$model  : BoolModel

Methods

__construct()  : mixed
validate()  : null|TypeViolation|ValueViolation
validateNonNullValue()  : null|TypeViolation

Properties

Methods

validateNonNullValue()

public validateNonNullValue(array<string|int, mixed>|bool|float|int|object|string $value) : null|TypeViolation
Parameters
$value : array<string|int, mixed>|bool|float|int|object|string
Attributes
#[Override]
Return values
null|TypeViolation
On this page

Search results