Mask
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
decimalPlaces(int|null $places)
No description
decimalSeparator(string|null $separator = '.')
No description
jsonOptions(string|null $json = null)
No description
lazyPlaceholder(bool $condition = true)
No description
mapToDecimalSeparator(array $characters)
No description
money(string $prefix = '$', string $thousandsSeparator = ',', int $decimalPlaces = 2, bool $isSigned = true)
No description
normalizeZeros(bool $condition = true)
No description
padFractionalZeros(bool $condition = true)
No description
patternBlocks(array $blocks)
No description
patternDefinitions(array $definitions)
No description
placeholderCharacter(string $character)
No description
thousandsSeparator(string|null $separator = ',')
No description
array
getArrayableConfiguration()
No description
string
toJson($options = 0)
No description
Details
final
__construct()
No description
Mask
autofix(bool $condition = true)
No description
Mask
decimalPlaces(int|null $places)
No description
Mask
decimalSeparator(string|null $separator = '.')
No description
Mask
enum(array $values)
No description
Mask
from(int|null $value)
No description
Mask
integer()
No description
Mask
jsonOptions(string|null $json = null)
No description
Mask
lazyPlaceholder(bool $condition = true)
No description
Mask
mapToDecimalSeparator(array $characters)
No description
Mask
maxLength(int|null $value)
No description
Mask
maxValue(float|null $value)
No description
Mask
minValue(float|null $value)
No description
Mask
money(string $prefix = '$', string $thousandsSeparator = ',', int $decimalPlaces = 2, bool $isSigned = true)
No description
Mask
numeric(bool $condition = true)
No description
Mask
normalizeZeros(bool $condition = true)
No description
Mask
overwrite(bool $condition = true)
No description
Mask
padFractionalZeros(bool $condition = true)
No description
Mask
pattern($pattern)
No description
Mask
patternBlocks(array $blocks)
No description
Mask
patternDefinitions(array $definitions)
No description
Mask
placeholderCharacter(string $character)
No description
Mask
positive()
No description
Mask
range(bool $condition = true)
No description
Mask
signed(bool $condition = true)
No description
Mask
thousandsSeparator(string|null $separator = ',')
No description
Mask
to(int|null $value)
No description
protected array
getArrayableConfiguration()
No description
string
toJson($options = 0)
No description