Skip to content

Commit 4aa725e

Browse files
authored
Update uid.rst
1 parent 10204ab commit 4aa725e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/uid.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ UUID objects created with the ``Uuid`` class can use the following methods
106106

107107
// getting the UUID datetime (it's only available in certain UUID types)
108108
$uuid = Uuid::v1();
109-
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
109+
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
110+
111+
// checking if a given value is valid as UUID
112+
$isValid = Uuid::isValid($uuid); // true or false
110113

111114
// comparing UUIDs and checking for equality
112115
$uuid1 = Uuid::v1();

0 commit comments

Comments
 (0)