.. _reference.rfc4122.fieldsinterface: ======================== Rfc4122\\FieldsInterface ======================== .. php:namespace:: Ramsey\Uuid\Rfc4122 .. php:interface:: FieldsInterface Implements :php:interface:`Ramsey\\Uuid\\Fields\\FieldsInterface`. Rfc4122\FieldsInterface represents the fields of an RFC 4122 UUID. In addition to the methods defined on the interface, this class additionally defines the following methods. .. php:method:: getClockSeq() :returns: The full 16-bit clock sequence, with the variant bits (two most significant bits) masked out. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getClockSeqHiAndReserved() :returns: The high field of the clock sequence multiplexed with the variant. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getClockSeqLow() :returns: The low field of the clock sequence. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getNode() :returns: The node field. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getTimeHiAndVersion() :returns: The high field of the timestamp multiplexed with the version. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getTimeLow() :returns: The low field of the timestamp. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getTimeMid() :returns: The middle field of the timestamp. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getTimestamp() :returns: The full 60-bit timestamp, without the version. :returntype: Ramsey\\Uuid\\Type\\Hexadecimal .. php:method:: getVariant() Returns the variant, which, for RFC 4122 variant UUIDs, should always be the value ``2``. :returns: The UUID variant. :returntype: ``int`` .. php:method:: getVersion() :returns: The UUID version. :returntype: ``int`` .. php:method:: isNil() A *nil* UUID is a special type of UUID with all 128 bits set to zero. Its string standard representation is always ``00000000-0000-0000-0000-000000000000``. :returns: True if this UUID represents a nil UUID. :returntype: ``bool``
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 |
|