BoolModel
extends AbstractModel
in package
implements
IScalarModel
FinalYes
Table of Contents
Interfaces
- IScalarModel
- Empty interface to easily check for a scalar type model.
Methods
- __construct() : mixed
- getNotNullConstraint() : INotNullConstraint|null
- isNullable() : bool
- Shorter way to check whether the content can be null.
Methods
__construct()
public
__construct([bool $isNullable = false ]) : mixed
Parameters
- $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.
isNullable()
Shorter way to check whether the content can be null.
public
isNullable() : bool
Attributes
- #[Override]