ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Data\UUID\Uuid Interface Reference
+ Inheritance diagram for ILIAS\Data\UUID\Uuid:
+ Collaboration diagram for ILIAS\Data\UUID\Uuid:

Public Member Functions

 compareTo (Uuid $other)
 Compares this UUID to the specified UUID. More...
 
 equals (Uuid $other)
 Compares this object to the specified object. More...
 
 toString ()
 Converts this UUID into a string representation. More...
 
 __toString ()
 Enforce that UUID implementation implement the __toString() magic method. More...
 

Detailed Description

Definition at line 13 of file Uuid.php.

Member Function Documentation

◆ __toString()

ILIAS\Data\UUID\Uuid::__toString ( )

Enforce that UUID implementation implement the __toString() magic method.

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.

◆ compareTo()

ILIAS\Data\UUID\Uuid::compareTo ( Uuid  $other)

Compares this UUID to the specified 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.
Parameters
Uuid$otherUUID to which this UUID is compared
Returns
int -1, 0 or 1 as this UUID is less than, equal to, or greater than $uuid

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.

◆ equals()

ILIAS\Data\UUID\Uuid::equals ( Uuid  $other)

Compares this object to the specified 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 this UUID.

Parameters
Uuid$other
Returns
bool True if $other is equal to this UUID

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.

◆ toString()

ILIAS\Data\UUID\Uuid::toString ( )

Converts this UUID into a string representation.

Implemented in ILIAS\Data\UUID\RamseyUuidWrapper.


The documentation for this interface was generated from the following file: