mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
add annotations for thrown exceptions
This commit is contained in:
@@ -74,6 +74,7 @@ class StringCodec implements CodecInterface
|
||||
*
|
||||
* @param string $encodedUuid
|
||||
* @return UuidInterface
|
||||
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
|
||||
*/
|
||||
public function decode($encodedUuid)
|
||||
{
|
||||
@@ -88,6 +89,7 @@ class StringCodec implements CodecInterface
|
||||
*
|
||||
* @param string $bytes
|
||||
* @return UuidInterface
|
||||
* @throws \InvalidArgumentException if string has not 16 characters
|
||||
*/
|
||||
public function decodeBytes($bytes)
|
||||
{
|
||||
@@ -115,6 +117,7 @@ class StringCodec implements CodecInterface
|
||||
*
|
||||
* @param string $encodedUuid
|
||||
* @return array
|
||||
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
|
||||
*/
|
||||
protected function extractComponents($encodedUuid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user