Documentation

FixedTimeProvider
in package
implements TimeProviderInterface

FixedTimeProvider uses an known time to provide the time

This provider allows the use of a previously-generated, or known, time when generating time-based UUIDs.

Interfaces, Classes, Traits and Enums

TimeProviderInterface
A time provider retrieves the current time

Table of Contents

$fixedTime  : Time
__construct()  : mixed
getTime()  : Time
Returns a time object
setSec()  : void
Sets the `sec` component of the time
setUsec()  : void
Sets the `usec` component of the time

Properties

Methods

setSec()

Sets the `sec` component of the time

public setSec(int|string|Integer $value) : void
Parameters
$value : int|string|Integer

The sec value to set

Return values
void

setUsec()

Sets the `usec` component of the time

public setUsec(int|string|Integer $value) : void
Parameters
$value : int|string|Integer

The usec value to set

Return values
void

Search results