.. _reference.uuidinterface: ============= UuidInterface ============= .. php:namespace:: Ramsey\Uuid .. php:interface:: UuidInterface Represents a UUID. .. php:method:: compareTo($other) :param Ramsey\\Uuid\\UuidInterface $other: The UUID to compare :returns: Returns ``-1``, ``0``, or ``1`` if the UUID is less than, equal to, or greater than the other UUID. :returntype: ``int`` .. php:method:: equals($other) :param object|null $other: An object to test for equality with this UUID. :returns: Returns true if the UUID is equal to the provided object. :returntype: ``bool`` .. php:method:: getBytes() :returns: A binary string representation of the UUID. :returntype: ``string`` .. php:method:: getFields() :returns: The fields that comprise this UUID. :returntype: Ramsey\\Uuid\\Fields\\FieldsInterface .. php:method:: getHex() :returns: The hexadecimal representation of the UUID. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getInteger() :returns: The integer representation of the UUID. :returntype: Ramsey\\Uuid\\Type\\Integer .. php:method:: getUrn() :returns: The string standard representation of the UUID as a `URN`_. :returntype: ``string`` .. php:method:: toString() :returns: The string standard representation of the UUID. :returntype: ``string`` .. php:method:: __toString() :returns: The string standard representation of the UUID. :returntype: ``string`` .. _URN: https://tools.ietf.org/html/rfc8141
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
calculators.rst | File | 6.92 KB | 0644 |
|
exceptions.rst | File | 2.83 KB | 0644 |
|
fields-fieldsinterface.rst | File | 363 B | 0644 |
|
guid-fields.rst | File | 263 B | 0644 |
|
guid-guid.rst | File | 510 B | 0644 |
|
helper.rst | File | 2.68 KB | 0644 |
|
name-based-namespaces.rst | File | 1.12 KB | 0644 |
|
nonstandard-fields.rst | File | 317 B | 0644 |
|
nonstandard-uuid.rst | File | 562 B | 0644 |
|
nonstandard-uuidv6.rst | File | 1.3 KB | 0644 |
|
rfc4122-fieldsinterface.rst | File | 2.35 KB | 0644 |
|
rfc4122-uuidinterface.rst | File | 587 B | 0644 |
|
rfc4122-uuidv1.rst | File | 608 B | 0644 |
|
rfc4122-uuidv2.rst | File | 1.65 KB | 0644 |
|
rfc4122-uuidv3.rst | File | 311 B | 0644 |
|
rfc4122-uuidv4.rst | File | 301 B | 0644 |
|
rfc4122-uuidv5.rst | File | 313 B | 0644 |
|
rfc4122-uuidv6.rst | File | 1012 B | 0644 |
|
rfc4122-uuidv7.rst | File | 609 B | 0644 |
|
rfc4122-uuidv8.rst | File | 301 B | 0644 |
|
types.rst | File | 2.45 KB | 0644 |
|
uuid.rst | File | 6.91 KB | 0644 |
|
uuidfactoryinterface.rst | File | 4.05 KB | 0644 |
|
uuidinterface.rst | File | 1.68 KB | 0644 |
|
validators.rst | File | 920 B | 0644 |
|