Skip to content

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.

Properties

time

private \Ramsey\Uuid\Type\Time $time

Methods

__construct

public __construct(\Ramsey\Uuid\Type\Time $time): mixed

Parameters:

Parameter Type Description
$time \Ramsey\Uuid\Type\Time

setUsec

Sets the usec component of the time

public setUsec(int|string|\Ramsey\Uuid\Type\Integer $value): void

Parameters:

Parameter Type Description
$value int|string|\Ramsey\Uuid\Type\Integer The usec value to set

setSec

Sets the sec component of the time

public setSec(int|string|\Ramsey\Uuid\Type\Integer $value): void

Parameters:

Parameter Type Description
$value int|string|\Ramsey\Uuid\Type\Integer The sec value to set

getTime

Returns a time object

public getTime(): \Ramsey\Uuid\Type\Time


Automatically generated on 2025-03-18