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
public
mixed
MAX
= 32767
MAX_UNSIGNED
public
mixed
MAX_UNSIGNED
= 65535
MIN
public
mixed
MIN
= -32767
Properties
$rangeConstraint
private
IRangeConstraint|null
$rangeConstraint
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
getNotNullConstraint()
public
getNotNullConstraint() : INotNullConstraint|null
Attributes
- #[Override]
Return values
INotNullConstraint|null —Whether the content is necessarily specified or can be left omitted.
getRangeConstraint()
public
getRangeConstraint() : IRangeConstraint|null
Attributes
- #[Override]
Return values
IRangeConstraint|nullisNullable()
Shorter way to check whether the content can be null.
public
isNullable() : bool
Attributes
- #[Override]