| Methods |
abstract
public
static
|
isValid(string $uid): bool
Whether the passed value is valid for the constructor of the current class.
Whether the passed value is valid for the constructor of the current class.
Implemented by
|
#
|
abstract
public
static
|
fromString(string $uid): static
Creates an AbstractUid from an identifier represented in any of the supported formats.
Creates an AbstractUid from an identifier represented in any of the supported formats.
Throws
Implemented by
|
#
|
public
static
|
fromBinary(string $uid): static
|
#
|
public
static
|
fromBase58(string $uid): static
|
#
|
public
static
|
fromBase32(string $uid): static
|
#
|
public
static
|
fromRfc4122(string $uid): static
Parameters
| $uid |
A valid RFC 9562/4122 uid
|
Throws
|
#
|
abstract
public
|
toBinary(): non-empty-string
Returns the identifier as a raw binary string.
Returns the identifier as a raw binary string.
Implemented by
|
#
|
public
|
toBase58(): non-empty-string
Returns the identifier as a base58 case-sensitive string.
Returns the identifier as a base58 case-sensitive string.
|
#
|
public
|
toBase32(): non-empty-string
Returns the identifier as a base32 case-insensitive string.
Returns the identifier as a base32 case-insensitive string.
Overriden by
|
#
|
public
|
toRfc4122(): non-empty-string
Returns the identifier as a RFC 9562/4122 case-insensitive string.
Returns the identifier as a RFC 9562/4122 case-insensitive string.
|
#
|
public
|
toHex(): non-empty-string
Returns the identifier as a prefixed hexadecimal case insensitive string.
Returns the identifier as a prefixed hexadecimal case insensitive string.
|
#
|
public
|
equals(mixed $other): bool
Returns whether the argument is an AbstractUid and contains the same value as the current instance.
Returns whether the argument is an AbstractUid and contains the same value as the current instance.
Implements
|
#
|
public
|
hash(): non-empty-string
|
#
|
public
|
compare(self $other): int
|
#
|
final
public
|
toString(): non-empty-string
|
#
|
public
|
__toString(): non-empty-string
|
#
|
public
|
jsonSerialize(): non-empty-string
|
#
|