function Uuid::setFactory
Sets the factory used to create UUIDs
Parameters
UuidFactoryInterface $factory A factory that will be used by this: class to create UUIDs
File
-
vendor/
ramsey/ uuid/ src/ Uuid.php, line 421
Class
- Uuid
- Uuid provides constants and static methods for working with and generating UUIDs
Namespace
Ramsey\UuidCode
public static function setFactory(UuidFactoryInterface $factory) : void {
// Note: non-strict equality is intentional here. If the factory is configured differently, every assumption
// around purity is broken, and we have to internally decide everything differently.
// phpcs:ignore SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator
self::$factoryReplaced = $factory != new UuidFactory();
self::$factory = $factory;
}