diff --git a/docs/quickstart.rst b/docs/quickstart.rst index d1ee60d4..c1e59c05 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -100,6 +100,8 @@ library. - Checks whether a string is a valid UUID. * - :php:meth:`Uuid::fromString() ` - Creates a UUID instance from a string UUID. + * - :php:meth:`Uuid::fromStrictString() ` + - Creates a UUID from a valid string representation. * - :php:meth:`Uuid::fromBytes() ` - Creates a UUID instance from a 16-byte string. * - :php:meth:`Uuid::fromInteger() ` diff --git a/docs/reference/uuid.rst b/docs/reference/uuid.rst index c77ab11d..93245ad2 100644 --- a/docs/reference/uuid.rst +++ b/docs/reference/uuid.rst @@ -163,6 +163,14 @@ the ramsey/uuid library. :param string $uuid: The string standard representation of a UUID :returntype: Ramsey\\Uuid\\UuidInterface + .. php:staticmethod:: fromStrictString($uuid) + + Creates a UUID from a valid string representation, validated against + the isValid method. + + :param string $uuid: The string standard representation of a UUID + :returntype: Ramsey\\Uuid\\UuidInterface + .. php:staticmethod:: fromBytes($bytes) Creates an instance of UuidInterface from a 16-byte string. diff --git a/docs/reference/uuidfactoryinterface.rst b/docs/reference/uuidfactoryinterface.rst index c68a61de..e9c91a48 100644 --- a/docs/reference/uuidfactoryinterface.rst +++ b/docs/reference/uuidfactoryinterface.rst @@ -76,6 +76,14 @@ UuidFactoryInterface :param string $uuid: The string standard representation of a UUID :returntype: Ramsey\\Uuid\\UuidInterface + .. php:method:: fromStrictString($uuid) + + Creates a UUID from a valid string representation, validated against + the isValid method. + + :param string $uuid: The string standard representation of a UUID + :returntype: Ramsey\\Uuid\\UuidInterface + .. php:method:: fromBytes($bytes) Creates an instance of UuidInterface from a 16-byte string.