Documentation

IntModel extends AbstractModel
in package
implements ILengthModel, IScalarModel

FinalYes

Table of Contents

Interfaces

ILengthModel
Interface for models for which an IRangeConstraint makes sense.
IScalarModel
Empty interface to easily check for a scalar type model.

Constants

MAX  : mixed = 32767
MAX_UNSIGNED  : mixed = 65535
MIN  : mixed = -32767

Properties

$rangeConstraint  : IRangeConstraint|null

Methods

__construct()  : mixed
getNotNullConstraint()  : INotNullConstraint|null
getRangeConstraint()  : IRangeConstraint|null
isNullable()  : bool
Shorter way to check whether the content can be null.

Constants

MAX_UNSIGNED

public mixed MAX_UNSIGNED = 65535

Properties

Methods

__construct()

public __construct([int|null $min = null ][, int|null $max = null ][, bool $isNullable = false ]) : mixed
Parameters
$min : int|null = null
$max : int|null = null
$isNullable : bool = false

isNullable()

Shorter way to check whether the content can be null.

public isNullable() : bool
Attributes
#[Override]
Return values
bool
On this page

Search results