NilUuid
extends Uuid
in package
Tags
Table of Contents
Constants
- NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
- NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'
- NIL = '00000000-0000-0000-0000-000000000000'
- TYPE = -1
Properties
- $uid : mixed
- The identifier in its canonic representation.
Methods
- __construct() : mixed
- __toString() : string
- compare() : int
- equals() : bool
- Returns whether the argument is an AbstractUid and contains the same value as the current instance.
- fromBase32() : static
- fromBase58() : static
- fromBinary() : static
- fromRfc4122() : static
- fromString() : static
- Creates an AbstractUid from an identifier represented in any of the supported formats.
- isValid() : bool
- Whether the passed value is valid for the constructor of the current class.
- jsonSerialize() : string
- toBase32() : string
- Returns the identifier as a base32 case insensitive string.
- toBase58() : string
- Returns the identifier as a base58 case sensitive string.
- toBinary() : string
- Returns the identifier as a raw binary string.
- toRfc4122() : string
- Returns the identifier as a RFC4122 case insensitive string.
- v1() : UuidV1
- v3() : UuidV3
- v4() : UuidV4
- v5() : UuidV5
- v6() : UuidV6
- format() : string
Constants
NAMESPACE_DNS
public
mixed
NAMESPACE_DNS
= '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
NAMESPACE_OID
public
mixed
NAMESPACE_OID
= '6ba7b812-9dad-11d1-80b4-00c04fd430c8'
NAMESPACE_URL
public
mixed
NAMESPACE_URL
= '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
NAMESPACE_X500
public
mixed
NAMESPACE_X500
= '6ba7b814-9dad-11d1-80b4-00c04fd430c8'
NIL
protected
mixed
NIL
= '00000000-0000-0000-0000-000000000000'
TYPE
protected
mixed
TYPE
= -1
Properties
$uid
The identifier in its canonic representation.
protected
mixed
$uid
Methods
__construct()
public
__construct() : mixed
__toString()
public
__toString() : string
Return values
stringcompare()
public
compare(self $other) : int
Parameters
- $other : self
Return values
intequals()
Returns whether the argument is an AbstractUid and contains the same value as the current instance.
public
equals(mixed $other) : bool
Parameters
- $other : mixed
Return values
boolfromBase32()
public
static fromBase32(string $uid) : static
Parameters
- $uid : string
Tags
Return values
staticfromBase58()
public
static fromBase58(string $uid) : static
Parameters
- $uid : string
Tags
Return values
staticfromBinary()
public
static fromBinary(string $uid) : static
Parameters
- $uid : string
Tags
Return values
staticfromRfc4122()
public
static fromRfc4122(string $uid) : static
Parameters
- $uid : string
Tags
Return values
staticfromString()
Creates an AbstractUid from an identifier represented in any of the supported formats.
public
abstract static fromString(string $uid) : static
Parameters
- $uid : string
Tags
Return values
staticisValid()
Whether the passed value is valid for the constructor of the current class.
public
abstract static isValid(string $uid) : bool
Parameters
- $uid : string
Return values
booljsonSerialize()
public
jsonSerialize() : string
Return values
stringtoBase32()
Returns the identifier as a base32 case insensitive string.
public
toBase32() : string
Return values
stringtoBase58()
Returns the identifier as a base58 case sensitive string.
public
toBase58() : string
Return values
stringtoBinary()
Returns the identifier as a raw binary string.
public
abstract toBinary() : string
Return values
stringtoRfc4122()
Returns the identifier as a RFC4122 case insensitive string.
public
toRfc4122() : string
Return values
stringv1()
public
final static v1() : UuidV1
Return values
UuidV1v3()
public
final static v3(self $namespace, string $name) : UuidV3
Parameters
- $namespace : self
- $name : string
Return values
UuidV3v4()
public
final static v4() : UuidV4
Return values
UuidV4v5()
public
final static v5(self $namespace, string $name) : UuidV5
Parameters
- $namespace : self
- $name : string
Return values
UuidV5v6()
public
final static v6() : UuidV6
Return values
UuidV6format()
private
static format(string $uuid, string $version) : string
Parameters
- $uuid : string
- $version : string