FeatureSet
class FeatureSet (View source)
FeatureSet detects and exposes available features in the current environment (32- or 64-bit, available dependencies, etc.)
Methods
Constructs a FeatureSet
for use by a UuidFactory
to determine or set
features available to the environment
Returns the builder configured for this environment
Returns the UUID UUID coder-decoder configured for this environment
Returns the system node ID provider configured for this environment
Returns the number converter configured for this environment
Returns the random UUID generator configured for this environment
Returns the time-based UUID generator configured for this environment
Sets the time provider for use in this environment
Determines which UUID coder-decoder to use and returns the configured codec for this environment
Determines which system node ID provider to use and returns the configured system node ID provider for this environment
Determines which number converter to use and returns the configured number converter for this environment
Determines which random UUID generator to use and returns the configured random UUID generator for this environment
Determines which time-based UUID generator to use and returns the configured time-based UUID generator for this environment
Determines which time converter to use and returns the configured time converter for this environment
Determines which UUID builder to use and returns the configured UUID builder for this environment
Returns true if the system has Moontoast\Math\BigNumber
Returns true if the system is 64-bit, false otherwise
Details
at line 112
__construct(bool $useGuids = false, bool $force32Bit = false, bool $forceNoBigNumber = false, bool $ignoreSystemNode = false, bool $enablePecl = false)
Constructs a FeatureSet
for use by a UuidFactory
to determine or set
features available to the environment
at line 137
UuidBuilderInterface
getBuilder()
Returns the builder configured for this environment
at line 147
CodecInterface
getCodec()
Returns the UUID UUID coder-decoder configured for this environment
at line 157
NodeProviderInterface
getNodeProvider()
Returns the system node ID provider configured for this environment
at line 167
NumberConverterInterface
getNumberConverter()
Returns the number converter configured for this environment
at line 177
RandomGeneratorInterface
getRandomGenerator()
Returns the random UUID generator configured for this environment
at line 187
TimeGeneratorInterface
getTimeGenerator()
Returns the time-based UUID generator configured for this environment
at line 197
setTimeProvider(TimeProviderInterface $timeProvider)
Sets the time provider for use in this environment
at line 209
protected CodecInterface
buildCodec(bool $useGuids = false)
Determines which UUID coder-decoder to use and returns the configured codec for this environment
at line 224
protected NodeProviderInterface
buildNodeProvider()
Determines which system node ID provider to use and returns the configured system node ID provider for this environment
at line 242
protected NumberConverterInterface
buildNumberConverter()
Determines which number converter to use and returns the configured number converter for this environment
at line 257
protected RandomGeneratorInterface
buildRandomGenerator()
Determines which random UUID generator to use and returns the configured random UUID generator for this environment
at line 269
protected TimeGeneratorInterface
buildTimeGenerator(TimeProviderInterface $timeProvider)
Determines which time-based UUID generator to use and returns the configured time-based UUID generator for this environment
at line 288
protected TimeConverterInterface
buildTimeConverter()
Determines which time converter to use and returns the configured time converter for this environment
at line 305
protected UuidBuilderInterface
buildUuidBuilder()
Determines which UUID builder to use and returns the configured UUID builder for this environment
at line 319
protected bool
hasBigNumber()
Returns true if the system has Moontoast\Math\BigNumber
at line 329
protected bool
is64BitSystem()
Returns true if the system is 64-bit, false otherwise