ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Uuid.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Data\UUID;
22 
29 interface Uuid
30 {
44  public function compareTo(Uuid $other): int;
45 
56  public function equals(Uuid $other): bool;
57 
61  public function toString(): string;
62 
66  public function __toString(): string;
67 }
equals(Uuid $other)
Compares this object to the specified object.
toString()
Converts this UUID into a string representation.
compareTo(Uuid $other)
Compares this UUID to the specified UUID.
__toString()
Enforce that UUID implementation implement the __toString() magic method.