FixedTimeProvider
FixedTimeProvider uses a known time to provide the time
This provider allows the use of a previously-generated, or known, time when generating time-based UUIDs.
- Full name:
\Ramsey\Uuid\Provider\Time\FixedTimeProvider
- This class implements:
\Ramsey\Uuid\Provider\TimeProviderInterface
Properties
time
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$time |
\Ramsey\Uuid\Type\Time |
setUsec
Sets the usec
component of the time
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
int|string|\Ramsey\Uuid\Type\Integer | The usec value to set |
setSec
Sets the sec
component of the time
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
int|string|\Ramsey\Uuid\Type\Integer | The sec value to set |
getTime
Returns a time object
Automatically generated on 2025-03-18