FixedTimeProvider
class FixedTimeProvider implements TimeProviderInterface (View source)
FixedTimeProvider uses an previously-generated timestamp to provide the time
This provider allows the use of a previously-generated timestamp, such as one stored in a database, when creating version 1 UUIDs.
Methods
__construct(array $timestamp)
Constructs a FixedTimeProvider
using the provided $timestamp
setUsec(int $value)
Sets the usec
component of the timestamp
setSec(int $value)
Sets the sec
component of the timestamp
int[]
currentTime()
Returns a timestamp array
Details
at line 38
__construct(array $timestamp)
Constructs a FixedTimeProvider
using the provided $timestamp
at line 52
setUsec(int $value)
Sets the usec
component of the timestamp
at line 62
setSec(int $value)
Sets the sec
component of the timestamp
at line 72
int[]
currentTime()
Returns a timestamp array