ParsedPattern
Represents a parsed number pattern.
- Full name:
\CommerceGuys\Intl\Formatter\ParsedPattern
- This class is marked as final and can't be subclassed
- This class is a Final class
Properties
positivePattern
The positive number pattern.
negativePattern
The negative number pattern.
groupingUsed
Whether grouping is used.
primaryGroupSize
The primary group size.
secondaryGroupSize
The secondary group size.
Methods
__construct
Creates a new ParsedPattern instance.
Parameters:
Parameter | Type | Description |
---|---|---|
$pattern |
string | The raw pattern. |
getPositivePattern
Gets the positive number pattern.
Used to format positive numbers.
getNegativePattern
Gets the negative number pattern.
Used to format negative numbers.
isGroupingUsed
Gets whether grouping is used.
Indicates that major digits should be grouped according to group sizes, right-to-left.
getPrimaryGroupSize
Gets the primary group size.
getSecondaryGroupSize
Gets the secondary group size.
Automatically generated on 2025-03-18