FeatureSet
FeatureSet detects and exposes available features in the current environment
A feature set is used by UuidFactory to determine the available features and capabilities of the environment.
- Full name:
\Ramsey\Uuid\FeatureSet
Properties
timeProvider
calculator
codec
dceSecurityGenerator
nameGenerator
nodeProvider
numberConverter
randomGenerator
timeConverter
timeGenerator
unixTimeGenerator
builder
validator
force32Bit
ignoreSystemNode
enablePecl
Methods
__construct
public __construct(bool $useGuids = false, bool $force32Bit = false, bool $forceNoBigNumber = false, bool $ignoreSystemNode = false, bool $enablePecl = false): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$useGuids |
bool | True build UUIDs using the GuidStringCodec |
$force32Bit |
bool | True to force the use of 32-bit functionality (primarily for testing purposes) |
$forceNoBigNumber |
bool | (obsolete) |
$ignoreSystemNode |
bool | True to disable attempts to check for the system node ID (primarily for testing purposes) |
$enablePecl |
bool | True to enable the use of the PeclUuidTimeGenerator to generate version 1 UUIDs |
getBuilder
Returns the builder configured for this environment
getCalculator
Returns the calculator configured for this environment
getCodec
Returns the codec configured for this environment
getDceSecurityGenerator
Returns the DCE Security generator configured for this environment
getNameGenerator
Returns the name generator configured for this environment
getNodeProvider
Returns the node provider configured for this environment
getNumberConverter
Returns the number converter configured for this environment
getRandomGenerator
Returns the random generator configured for this environment
getTimeConverter
Returns the time converter configured for this environment
getTimeGenerator
Returns the time generator configured for this environment
getUnixTimeGenerator
Returns the Unix Epoch time generator configured for this environment
getValidator
Returns the validator configured for this environment
setCalculator
Sets the calculator to use in this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$calculator |
\Ramsey\Uuid\Math\CalculatorInterface |
setDceSecurityProvider
Sets the DCE Security provider to use in this environment
public setDceSecurityProvider(\Ramsey\Uuid\Provider\DceSecurityProviderInterface $dceSecurityProvider): void
Parameters:
Parameter | Type | Description |
---|---|---|
$dceSecurityProvider |
\Ramsey\Uuid\Provider\DceSecurityProviderInterface |
setNodeProvider
Sets the node provider to use in this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$nodeProvider |
\Ramsey\Uuid\Provider\NodeProviderInterface |
setTimeProvider
Sets the time provider to use in this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$timeProvider |
\Ramsey\Uuid\Provider\TimeProviderInterface |
setValidator
Set the validator to use in this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$validator |
\Ramsey\Uuid\Validator\ValidatorInterface |
buildCodec
Returns a codec configured for this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$useGuids |
bool | Whether to build UUIDs using the GuidStringCodec |
buildDceSecurityGenerator
Returns a DCE Security generator configured for this environment
private buildDceSecurityGenerator(\Ramsey\Uuid\Provider\DceSecurityProviderInterface $dceSecurityProvider): \Ramsey\Uuid\Generator\DceSecurityGeneratorInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$dceSecurityProvider |
\Ramsey\Uuid\Provider\DceSecurityProviderInterface |
buildNodeProvider
Returns a node provider configured for this environment
buildNumberConverter
Returns a number converter configured for this environment
private buildNumberConverter(\Ramsey\Uuid\Math\CalculatorInterface $calculator): \Ramsey\Uuid\Converter\NumberConverterInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$calculator |
\Ramsey\Uuid\Math\CalculatorInterface |
buildRandomGenerator
Returns a random generator configured for this environment
buildTimeGenerator
Returns a time generator configured for this environment
private buildTimeGenerator(\Ramsey\Uuid\Provider\TimeProviderInterface $timeProvider): \Ramsey\Uuid\Generator\TimeGeneratorInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$timeProvider |
\Ramsey\Uuid\Provider\TimeProviderInterface | The time provider to use with the time generator |
buildUnixTimeGenerator
Returns a Unix Epoch time generator configured for this environment
buildNameGenerator
Returns a name generator configured for this environment
buildTimeConverter
Returns a time converter configured for this environment
private buildTimeConverter(\Ramsey\Uuid\Math\CalculatorInterface $calculator): \Ramsey\Uuid\Converter\TimeConverterInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$calculator |
\Ramsey\Uuid\Math\CalculatorInterface |
buildUuidBuilder
Returns a UUID builder configured for this environment
Parameters:
Parameter | Type | Description |
---|---|---|
$useGuids |
bool | Whether to build UUIDs using the GuidStringCodec |
is64BitSystem
Returns true if the PHP build is 64-bit
Automatically generated on 2025-03-18