Documentation

FeatureSet
in package

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.

Table of Contents

$builder  : UuidBuilderInterface
$calculator  : CalculatorInterface
$codec  : CodecInterface
$dceSecurityGenerator  : DceSecurityGeneratorInterface
$disable64Bit  : bool
$disableBigNumber  : bool
$enablePecl  : bool
$ignoreSystemNode  : bool
$nameGenerator  : NameGeneratorInterface
$nodeProvider  : NodeProviderInterface
$numberConverter  : NumberConverterInterface
$randomGenerator  : RandomGeneratorInterface
$timeConverter  : TimeConverterInterface
$timeGenerator  : TimeGeneratorInterface
$timeProvider  : TimeProviderInterface
$validator  : ValidatorInterface
__construct()  : mixed
getBuilder()  : UuidBuilderInterface
Returns the builder configured for this environment
getCalculator()  : CalculatorInterface
Returns the calculator configured for this environment
getCodec()  : CodecInterface
Returns the codec configured for this environment
getDceSecurityGenerator()  : DceSecurityGeneratorInterface
Returns the DCE Security generator configured for this environment
getNameGenerator()  : NameGeneratorInterface
Returns the name generator configured for this environment
getNodeProvider()  : NodeProviderInterface
Returns the node provider configured for this environment
getNumberConverter()  : NumberConverterInterface
Returns the number converter configured for this environment
getRandomGenerator()  : RandomGeneratorInterface
Returns the random generator configured for this environment
getTimeConverter()  : TimeConverterInterface
Returns the time converter configured for this environment
getTimeGenerator()  : TimeGeneratorInterface
Returns the time generator configured for this environment
getValidator()  : ValidatorInterface
Returns the validator configured for this environment
setCalculator()  : void
Sets the calculator to use in this environment
setDceSecurityProvider()  : void
Sets the DCE Security provider to use in this environment
setNodeProvider()  : void
Sets the node provider to use in this environment
setTimeProvider()  : void
Sets the time provider to use in this environment
setValidator()  : void
Set the validator to use in this environment
buildCodec()  : CodecInterface
Returns a codec configured for this environment
buildDceSecurityGenerator()  : DceSecurityGeneratorInterface
Returns a DCE Security generator configured for this environment
buildNameGenerator()  : NameGeneratorInterface
Returns a name generator configured for this environment
buildNodeProvider()  : NodeProviderInterface
Returns a node provider configured for this environment
buildNumberConverter()  : NumberConverterInterface
Returns a number converter configured for this environment
buildRandomGenerator()  : RandomGeneratorInterface
Returns a random generator configured for this environment
buildTimeConverter()  : TimeConverterInterface
Returns a time converter configured for this environment
buildTimeGenerator()  : TimeGeneratorInterface
Returns a time generator configured for this environment
buildUuidBuilder()  : UuidBuilderInterface
Returns a UUID builder configured for this environment
is64BitSystem()  : bool
Returns true if the PHP build is 64-bit

Properties

$disable64Bit

private bool $disable64Bit = false

$disableBigNumber

private bool $disableBigNumber = false

$ignoreSystemNode

private bool $ignoreSystemNode = false

Methods

__construct()

public __construct([bool $useGuids = false ][, bool $force32Bit = false ][, bool $forceNoBigNumber = false ][, bool $ignoreSystemNode = false ][, bool $enablePecl = false ]) : mixed
Parameters
$useGuids : bool = false

True build UUIDs using the GuidStringCodec

$force32Bit : bool = false

True to force the use of 32-bit functionality (primarily for testing purposes)

$forceNoBigNumber : bool = false

True to disable the use of moontoast/math (primarily for testing purposes)

$ignoreSystemNode : bool = false

True to disable attempts to check for the system node ID (primarily for testing purposes)

$enablePecl : bool = false

True to enable the use of the PeclUuidTimeGenerator to generate version 1 UUIDs

Return values
mixed

buildCodec()

Returns a codec configured for this environment

private buildCodec([bool $useGuids = false ]) : CodecInterface
Parameters
$useGuids : bool = false

Whether to build UUIDs using the GuidStringCodec

Return values
CodecInterface

buildUuidBuilder()

Returns a UUID builder configured for this environment

private buildUuidBuilder([bool $useGuids = false ]) : UuidBuilderInterface
Parameters
$useGuids : bool = false

Whether to build UUIDs using the GuidStringCodec

Return values
UuidBuilderInterface

is64BitSystem()

Returns true if the PHP build is 64-bit

private is64BitSystem() : bool
Return values
bool

Search results