Documentation

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
psalm-immutable

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

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

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

Tags
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint

psalm-suppress

UnusedMethodCall

Return values
void

Search results