Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3fe53a

Browse files
94nonijaviereguiluz
authored andcommitted
Update uid.rst
1 parent 75862b6 commit c3fe53a

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
@@ -120,7 +120,10 @@ UUID objects created with the ``Uuid`` class can use the following methods
120120

121121
// getting the UUID datetime (it's only available in certain UUID types)
122122
$uuid = Uuid::v1();
123-
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
123+
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
124+
125+
// checking if a given value is valid as UUID
126+
$isValid = Uuid::isValid($uuid); // true or false
124127

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

0 commit comments

Comments
 (0)