Time
in package
implements
TypeInterface
A value object representing a timestamp
This class exists for type-safety purposes, to ensure that timestamps used by ramsey/uuid are truly timestamp integers and not some other kind of string or integer.
Tags
Interfaces, Classes, Traits and Enums
- TypeInterface
- TypeInterface ensures consistency in typed values returned by ramsey/uuid
Table of Contents
- $microseconds : Integer
- $seconds : Integer
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __toString() : string
- __unserialize() : void
- getMicroseconds() : Integer
- getSeconds() : Integer
- jsonSerialize() : array<string|int, string>
- serialize() : string
- toString() : string
- unserialize() : void
- Constructs the object from a serialized string representation
Properties
$microseconds
private
Integer
$microseconds
$seconds
private
Integer
$seconds
Methods
__construct()
public
__construct(mixed $seconds[, mixed $microseconds = 0 ]) : mixed
Parameters
- $seconds : mixed
- $microseconds : mixed = 0
Return values
mixed —__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__toString()
public
__toString() : string
Return values
string —__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —getMicroseconds()
public
getMicroseconds() : Integer
Return values
Integer —getSeconds()
public
getSeconds() : Integer
Return values
Integer —jsonSerialize()
public
jsonSerialize() : array<string|int, string>
Return values
array<string|int, string> —serialize()
public
serialize() : string
Return values
string —toString()
public
toString() : string
Return values
string —unserialize()
Constructs the object from a serialized string representation
public
unserialize(string $serialized) : void
Parameters
- $serialized : string
-
The serialized string representation of the object