class Mask implements Jsonable (View source)

Properties

protected int|null $decimalPlaces
protected string|null $decimalSeparator
protected array $enum
protected int|null $fromValue
protected bool $hasLazyPlaceholder
protected bool $isNumeric
protected bool $isRange
protected bool $isSigned
protected string|null $jsonOptions
protected array $mapToDecimalSeparator
protected int|null $maxLength
protected float|null $maxValue
protected float|null $minValue
protected $pattern
protected array $patternBlocks
protected array $patternDefinitions
protected string $placeholderCharacter
protected bool $shouldAutofix
protected bool $shouldNormalizeZeros
protected bool $shouldOverwrite
protected bool $shouldPadFractionalZeros
protected string|null $thousandsSeparator
protected int|null $toValue

Methods

__construct()

No description

autofix(bool $condition = true)

No description

decimalPlaces(int|null $places)

No description

decimalSeparator(string|null $separator = '.')

No description

enum(array $values)

No description

from(int|null $value)

No description

integer()

No description

jsonOptions(string|null $json = null)

No description

lazyPlaceholder(bool $condition = true)

No description

mapToDecimalSeparator(array $characters)

No description

maxLength(int|null $value)

No description

maxValue(float|null $value)

No description

minValue(float|null $value)

No description

money(string $prefix = '$', string $thousandsSeparator = ',', int $decimalPlaces = 2, bool $isSigned = true)

No description

numeric(bool $condition = true)

No description

normalizeZeros(bool $condition = true)

No description

overwrite(bool $condition = true)

No description

padFractionalZeros(bool $condition = true)

No description

pattern($pattern)

No description

patternBlocks(array $blocks)

No description

patternDefinitions(array $definitions)

No description

placeholderCharacter(string $character)

No description

positive()

No description

range(bool $condition = true)

No description

signed(bool $condition = true)

No description

thousandsSeparator(string|null $separator = ',')

No description

to(int|null $value)

No description

array
getArrayableConfiguration()

No description

string
toJson($options = 0)

No description

Details

final __construct()

No description

Mask autofix(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask decimalPlaces(int|null $places)

No description

Parameters

int|null $places

Return Value

Mask

Mask decimalSeparator(string|null $separator = '.')

No description

Parameters

string|null $separator

Return Value

Mask

Mask enum(array $values)

No description

Parameters

array $values

Return Value

Mask

Mask from(int|null $value)

No description

Parameters

int|null $value

Return Value

Mask

Mask integer()

No description

Return Value

Mask

Mask jsonOptions(string|null $json = null)

No description

Parameters

string|null $json

Return Value

Mask

Mask lazyPlaceholder(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask mapToDecimalSeparator(array $characters)

No description

Parameters

array $characters

Return Value

Mask

Mask maxLength(int|null $value)

No description

Parameters

int|null $value

Return Value

Mask

Mask maxValue(float|null $value)

No description

Parameters

float|null $value

Return Value

Mask

Mask minValue(float|null $value)

No description

Parameters

float|null $value

Return Value

Mask

Mask money(string $prefix = '$', string $thousandsSeparator = ',', int $decimalPlaces = 2, bool $isSigned = true)

No description

Parameters

string $prefix
string $thousandsSeparator
int $decimalPlaces
bool $isSigned

Return Value

Mask

Mask numeric(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask normalizeZeros(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask overwrite(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask padFractionalZeros(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask pattern($pattern)

No description

Parameters

$pattern

Return Value

Mask

Mask patternBlocks(array $blocks)

No description

Parameters

array $blocks

Return Value

Mask

Mask patternDefinitions(array $definitions)

No description

Parameters

array $definitions

Return Value

Mask

Mask placeholderCharacter(string $character)

No description

Parameters

string $character

Return Value

Mask

Mask positive()

No description

Return Value

Mask

Mask range(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask signed(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Mask

Mask thousandsSeparator(string|null $separator = ',')

No description

Parameters

string|null $separator

Return Value

Mask

Mask to(int|null $value)

No description

Parameters

int|null $value

Return Value

Mask

protected array getArrayableConfiguration()

No description

Return Value

array

string toJson($options = 0)

No description

Parameters

$options

Return Value

string