File: uuidinterface.rst

package info (click to toggle)
php-ramsey-uuid 4.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,124 kB
  • sloc: php: 13,359; xml: 194; python: 54; makefile: 16
file content (60 lines) | stat: -rw-r--r-- 1,658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.. _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