add annotations for thrown exceptions

This commit is contained in:
Marco Perone
2018-07-09 09:04:12 +02:00
parent 8a8b1c0d2a
commit 4b7374129c
21 changed files with 106 additions and 3 deletions
+3
View File
@@ -42,6 +42,7 @@ interface CodecInterface
*
* @param string $encodedUuid
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
*/
public function decode($encodedUuid);
@@ -50,6 +51,8 @@ interface CodecInterface
*
* @param string $bytes
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
* @throws \InvalidArgumentException if string has not 16 characters
*/
public function decodeBytes($bytes);
}
+2
View File
@@ -60,6 +60,7 @@ class GuidStringCodec extends StringCodec
*
* @param string $encodedUuid
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
*/
public function decode($encodedUuid)
{
@@ -75,6 +76,7 @@ class GuidStringCodec extends StringCodec
*
* @param string $bytes
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
*/
public function decodeBytes($bytes)
{
+1
View File
@@ -50,6 +50,7 @@ class OrderedTimeCodec extends StringCodec
*
* @param string $bytes
* @return UuidInterface
* @throws \InvalidArgumentException if string has not 16 characters
*/
public function decodeBytes($bytes)
{
+3
View File
@@ -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)
{
+2
View File
@@ -60,6 +60,7 @@ class TimestampFirstCombCodec extends StringCodec
* @param string $encodedUuid
*
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
*/
public function decode($encodedUuid)
{
@@ -76,6 +77,7 @@ class TimestampFirstCombCodec extends StringCodec
* @param string $bytes
*
* @return UuidInterface
* @throws \Ramsey\Uuid\Exception\InvalidUuidStringException
*/
public function decodeBytes($bytes)
{