interface UuidInterface
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php \Ramsey\Uuid\Rfc4122\UuidInterface
- 11.1.x core/lib/Drupal/Component/Uuid/UuidInterface.php \Drupal\Component\Uuid\UuidInterface
A UUID is a universally unique identifier adhering to an agreed-upon representation format and standard for generation
@psalm-immutable
Hierarchy
- interface \Ramsey\Uuid\DeprecatedUuidInterface
- interface \Ramsey\Uuid\UuidInterface extends \Ramsey\Uuid\DeprecatedUuidInterface \JsonSerializable \Serializable \Stringable
Expanded class hierarchy of UuidInterface
All classes that implement UuidInterface
17 files declare their use of UuidInterface
- CodecInterface.php in vendor/
ramsey/ uuid/ src/ Codec/ CodecInterface.php - DefaultNameGenerator.php in vendor/
ramsey/ uuid/ src/ Generator/ DefaultNameGenerator.php - DegradedUuidBuilder.php in vendor/
ramsey/ uuid/ src/ Builder/ DegradedUuidBuilder.php - FallbackBuilder.php in vendor/
ramsey/ uuid/ src/ Builder/ FallbackBuilder.php - GuidBuilder.php in vendor/
ramsey/ uuid/ src/ Guid/ GuidBuilder.php
File
-
vendor/
ramsey/ uuid/ src/ UuidInterface.php, line 30
Namespace
Ramsey\UuidView source
interface UuidInterface extends DeprecatedUuidInterface, JsonSerializable, Serializable, Stringable {
/**
* Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than
* the other UUID
*
* The first of two UUIDs is greater than the second if the most
* significant field in which the UUIDs differ is greater for the first
* UUID.
*
* * Q. What's the value of being able to sort UUIDs?
* * A. Use them as keys in a B-Tree or similar mapping.
*
* @param UuidInterface $other The UUID to compare
*
* @return int<-1,1> -1, 0, or 1 if the UUID is less than, equal to, or greater than $other
*/
public function compareTo(UuidInterface $other) : int;
/**
* Returns true if the UUID is equal to the provided object
*
* The result is true if and only if the argument is not null, is a UUID
* object, has the same variant, and contains the same value, bit for bit,
* as the UUID.
*
* @param object|null $other An object to test for equality with this UUID
*
* @return bool True if the other object is equal to this UUID
*/
public function equals(?object $other) : bool;
/**
* Returns the binary string representation of the UUID
*
* @psalm-return non-empty-string
*/
public function getBytes() : string;
/**
* Returns the fields that comprise this UUID
*/
public function getFields() : FieldsInterface;
/**
* Returns the hexadecimal representation of the UUID
*/
public function getHex() : Hexadecimal;
/**
* Returns the integer representation of the UUID
*/
public function getInteger() : IntegerObject;
/**
* Returns the string standard representation of the UUID as a URN
*
* @link http://en.wikipedia.org/wiki/Uniform_Resource_Name Uniform Resource Name
* @link https://tools.ietf.org/html/rfc4122#section-3 RFC 4122, § 3: Namespace Registration Template
*/
public function getUrn() : string;
/**
* Returns the string standard representation of the UUID
*
* @psalm-return non-empty-string
*/
public function toString() : string;
/**
* Casts the UUID to the string standard representation
*
* @psalm-return non-empty-string
*/
public function __toString() : string;
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|---|
DeprecatedUuidInterface::getClockSeqHiAndReservedHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getClockSeqLowHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getClockSequenceHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getDateTime | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getFieldsHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getLeastSignificantBitsHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getMostSignificantBitsHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getNodeHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getNumberConverter | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getTimeHiAndVersionHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getTimeLowHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getTimeMidHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getTimestampHex | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getVariant | Deprecated | public | function | 1 | |
DeprecatedUuidInterface::getVersion | Deprecated | public | function | 1 | |
UuidInterface::compareTo | public | function | Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than the other UUID |
2 | |
UuidInterface::equals | public | function | Returns true if the UUID is equal to the provided object | 2 | |
UuidInterface::getBytes | public | function | Returns the binary string representation of the UUID | 2 | |
UuidInterface::getFields | public | function | Returns the fields that comprise this UUID | 2 | |
UuidInterface::getHex | public | function | Returns the hexadecimal representation of the UUID | 2 | |
UuidInterface::getInteger | public | function | Returns the integer representation of the UUID | 2 | |
UuidInterface::getUrn | public | function | Returns the string standard representation of the UUID as a URN | 2 | |
UuidInterface::toString | public | function | Returns the string standard representation of the UUID | 2 | |
UuidInterface::__toString | public | function | Casts the UUID to the string standard representation | 2 |