Add getDateTime() to UuidV2

This commit is contained in:
Ben Ramsey
2020-03-02 22:55:34 -06:00
parent 7289d33396
commit 1f1329433f
5 changed files with 201 additions and 13 deletions
+19
View File
@@ -185,6 +185,25 @@ class UuidFactory implements UuidFactoryInterface
$this->timeGenerator = $generator;
}
/**
* Returns the DCE Security generator used by this factory
*/
public function getDceSecurityGenerator(): DceSecurityGeneratorInterface
{
return $this->dceSecurityGenerator;
}
/**
* Sets the DCE Security generator to use for this factory
*
* @param DceSecurityGeneratorInterface $generator A generator to generate
* binary data, based on a local domain and local identifier
*/
public function setDceSecurityGenerator(DceSecurityGeneratorInterface $generator): void
{
$this->dceSecurityGenerator = $generator;
}
/**
* Returns the number converter used by this factory
*/