P£3•VP£3•V€ Œ>€ Œ>€ Œ>€ Œ> € Œ> € Œ>0€ Œ>0€ Œ>@€ Œ>@€ Œ>P€ Œ>P€ Œ>J7•VJ7•Vp€ Œ>p€ Œ>€€ Œ>€€ Œ>€6•V€6•VÀÃ8•VÀÃ8•V°€ Œ>°€ Œ>À€ Œ>À€ Œ>Ѐ Œ>Ѐ Œ>à€ Œ>à€ Œ>ð€ Œ>ð€ Œ> Œ> Œ>±7•V±7•V  Œ>  Œ>0 Œ>0 Œ>ÀÆ2•VÀÆ2•VP Œ>P Œ>` Œ>` Œ>p Œ>p Œ>€ Œ>€ Œ> Œ> Œ>  Œ>  Œ>° Œ>° Œ>À Œ>À Œ>РŒ>РŒ>ðØ6•VðØ6•Vð Œ>ð Œ> Õ4•V°à5•VàÉ5•VàÉ5•V ‚ Œ> ‚ Œ>0‚ Œ>0‚ Œ> °5•V °5•VP‚ Œ>P‚ Œ>`‚ Œ>`‚ Œ>p‚ Œ>p‚ Œ>°,8•V°,8•VàQ7•V@/9•Vð²6•V€ö8•V°‚ Œ>°‚ Œ>À‚ Œ>À‚ Œ>}7•V}7•V0Ñ7•V0Ñ7•Vð‚ Œ>ð‚ Œ> è6•Vð_6•Vƒ Œ>ƒ Œ> ƒ Œ> ƒ Œ>0ƒ Œ>0ƒ Œ>P44•VP44•VPƒ Œ>Pƒ Œ>`ƒ Œ>`ƒ Œ>pƒ Œ>pƒ Œ>€ƒ Œ>€ƒ Œ>ƒ Œ>ƒ Œ> ƒ Œ> ƒ Œ>°ƒ Œ>°ƒ Œ>Àƒ Œ>Àƒ Œ>üßÛ‚‚p³’Iß8¿€{ Œ>` à €{‹Œ>”‹Œ> ¨3•VÐ&4•V€é˜ýoé˜ý8« Œ>ÿÿÿÿÿÿÿÿ€mŒ>ÀF Œ>L Œ>€L Œ>U Œ>@J Œ>ÀI Œ>ÀQ Œ> R Œ> R Œ>`S Œ>àS Œ>@T Œ>Às›Œ>Àd›Œ>Àj›Œ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>ÙŒ>À… Œ>† ­û † Œ>ÿÿÿÿÿÿÿÿЗ Œ>ÿÿÿÿÿÿÿÿ€w Œ>ÿÿÿÿ D Œ>„ ­û€y Œ>ÿÿÿÿÿÿÿÿà— Œ>ÿÿÿÿÿÿÿÿ€x Œ>ÿÿÿÿ D Œ>À… Œ> † Œ>€y Œ>ÐóƒŒ>`Z6•Vðd3•VNA BƒNñØ Bƒ½Œ> system node ID (primarily for testing purposes) * @param bool $enablePecl True to enable the use of the PeclUuidTimeGenerator * to generate version 1 UUIDs */ public function __construct( bool $useGuids = false, bool $force32Bit = false, bool $forceNoBigNumber = false, bool $ignoreSystemNode = false, bool $enablePecl = false ) { $this->disableBigNumber = $forceNoBigNumber; $this->disable64Bit = $force32Bit; $this->ignoreSystemNode = $ignoreSystemNode; $this->enablePecl = $enablePecl; $this->setCalculator(new BrickMathCalculator()); $this->builder = $this->buildUuidBuilder($useGuids); $this->codec = $this->buildCodec($useGuids); $this->nodeProvider = $this->buildNodeProvider(); $this->nameGenerator = $this->buildNameGenerator(); $this->randomGenerator = $this->buildRandomGenerator(); $this->setTimeProvider(new SystemTimeProvider()); $this->setDceSecurityProvider(new SystemDceSecurityProvider()); $this->validator = new GenericValidator(); } /** * Returns the builder configured for this environment */ public function getBuilder(): UuidBuilderInterface { return $this->builder; } /** * Returns the calculator configured for this environment */ public function getCalculator(): CalculatorInterface { return $this->calculator; } /** * Returns the codec configured for this environment */ public function getCodec(): CodecInterface { return $this->codec; } /** * Returns the DCE Security generator configured for this environment */ public function getDceSecurityGenerator(): DceSecurityGeneratorInterface { return $this->dceSecurityGenerator; } /** * Returns the name generator configured for this environment */ public function getNameGenerator(): NameGeneratorInterface { return $this->nameGenerator; } /** * Returns the node provider configured for this environment */ public function getNodeProvider(): NodeProviderInterface { return $this->nodeProvider; } /** * Returns the number converter configured for this environment */ public function getNumberConverter(): NumberConverterInterface { return $this->numberConverter; } /** * Returns the random generator configured for this environment */ public function getRandomGenerator(): RandomGeneratorInterface { return $this->randomGenerator; } /** * Returns the time converter configured for this environment */ public function getTimeConverter(): TimeConverterInterface { return $this->timeConverter; } /** * Returns the time generator configured for this environment */ public function getTimeGenerator(): TimeGeneratorInterface { return $this->timeGenerator; } /** * Returns the validator configured for this environment */ public function getValidator(): ValidatorInterface { return $this->validator; } /** * Sets the calculator to use in this environment */ public function setCalculator(CalculatorInterface $calculator): void { $this->calculator = $calculator; $this->numberConverter = $this->buildNumberConverter($calculator); $this->timeConverter = $this->buildTimeConverter($calculator); /** @psalm-suppress RedundantPropertyInitializationCheck */ if (isset($this->timeProvider)) { $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); } } /** * Sets the DCE Security provider to use in this environment */ public function setDceSecurityProvider(DceSecurityProviderInterface $dceSecurityProvider): void { $this->dceSecurityGenerator = $this->buildDceSecurityGenerator($dceSecurityProvider); } /** * Sets the node provider to use in this environment */ public function setNodeProvider(NodeProviderInterface $nodeProvider): void { $this->nodeProvider = $nodeProvider; $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); } /** * Sets the time provider to use in this environment */ public function setTimeProvider(TimeProviderInterface $timeProvider): void { $this->timeProvider = $timeProvider; $this->timeGenerator = $this->buildTimeGenerator($timeProvider); } /** * Set the validator to use in this environment */ public function setValidator(ValidatorInterface $validator): void { $this->validator = $validator; } /** * Returns a codec configured for this environment * * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec */ private function buildCodec(bool $useGuids = false): CodecInterface { if ($useGuids) { return new GuidStringCodec($this->builder); } return new StringCodec($this->builder); } /** * Returns a DCE Security generator configured for this environment */ private function buildDceSecurityGenerator( DceSecurityProviderInterface $dceSecurityProvider ): DceSecurityGeneratorInterface { return new DceSecurityGenerator( $this->numberConverter, $this->timeGenerator, $dceSecurityProvider ); } /** * Returns a node provider configured for this environment */ private function buildNodeProvider(): NodeProviderInterface { if ($this->ignoreSystemNode) { return new RandomNodeProvider(); } return new FallbackNodeProvider(new NodeProviderCollection([ new SystemNodeProvider(), new RandomNodeProvider(), ])); } /** * Returns a number converter configured for this environment */ private function buildNumberConverter(CalculatorInterface $calculator): NumberConverterInterface { return new GenericNumberConverter($calculator); } /** * Returns a random generator configured for this environment */ private function buildRandomGenerator(): RandomGeneratorInterface { if ($this->enablePecl) { return new PeclUuidRandomGenerator(); } return (new RandomGeneratorFactory())->getGenerator(); } /** * Returns a time generator configured for this environment * * @param TimeProviderInterface $timeProvider The time provider to use with * the time generator */ private function buildTimeGenerator(TimeProviderInterface $timeProvider): TimeGeneratorInterface { if ($this->enablePecl) { return new PeclUuidTimeGenerator(); } return (new TimeGeneratorFactory( $this->nodeProvider, $this->timeConverter, $timeProvider ))->getGenerator(); } /** * Returns a name generator configured for this environment */ private function buildNameGenerator(): NameGeneratorInterface { if ($this->enablePecl) { return new PeclUuidNameGenerator(); } return (new NameGeneratorFactory())->getGenerator(); } /** * Returns a time converter configured for this environment */ private function buildTimeConverter(CalculatorInterface $calculator): TimeConverterInterface { $genericConverter = new GenericTimeConverter($calculator); if ($this->is64BitSystem()) { return new PhpTimeConverter($calculator, $genericConverter); } return $genericConverter; } /** * Returns a UUID builder configured for this environment * * @param bool $useGuids Whether to build UUIDs using the GuidStringCodec */ private function buildUuidBuilder(bool $useGuids = false): UuidBuilderInterface { if ($useGuids) { return new GuidBuilder($this->numberConverter, $this->timeConverter); } /** @psalm-suppress ImpureArgument */ return new FallbackBuilder(new BuilderCollection([ new Rfc4122UuidBuilder($this->numberConverter, $this->timeConverter), new NonstandardUuidBuilder($this->numberConverter, $this->timeConverter), ])); } /** * Returns true if the PHP build is 64-bit */ private function is64BitSystem(): bool { return PHP_INT_SIZE === 8 && !$this->disable64Bit; } } Bike Parts
"Technically necessary cookies. Type and purpose of processing:

We use cookies to make our website more user-friendly. Some elements of our website require that the accessing browser can be identified even after a page change. The purpose of using technically necessary cookies is to simplify the use of websites for users. Some functions of our website cannot be offered without the use of cookies. For these it is necessary that the browser is recognized even after a page change. "NO data is passed on,
NO user profiles are created that are used to display advertising.

This website only uses service providers from Germany and NO personal data is transferred to third countries.

For more information see data protection.
close