Documentation

StringModel 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.

Properties

$enumConstraint  : IEnumConstraint|null
$rangeConstraint  : RangeConstraint|null
$regexConstraint  : RegexConstraint|null
$uploadedImageConstraint  : IUploadedImageConstraint|null

Methods

__construct()  : mixed
getEnumConstraint()  : IEnumConstraint|null
getNotNullConstraint()  : INotNullConstraint|null
getRangeConstraint()  : IRangeConstraint|null
getRegexConstraint()  : IRegexConstraint|null
getUploadedImageConstraint()  : IUploadedImageConstraint|null
isNullable()  : bool
Shorter way to check whether the content can be null.

Properties

Methods

__construct()

public __construct([int|null $lowerLimit = null ][, int|null $upperLimit = null ][, string|null $regex = null ][, IEnumConstraint|null $enumConstraint = null ][, IUploadedImageConstraint|null $uploadedImageConstraint = null ][, bool $isNullable = false ]) : mixed
Parameters
$lowerLimit : int|null = null
$upperLimit : int|null = null
$regex : string|null = null
$enumConstraint : IEnumConstraint|null = null
$uploadedImageConstraint : IUploadedImageConstraint|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