Updated PHPDoc about the unicity violation exception throwing

UniqueTokenIdentifierConstraintViolationException can be thrown when persisting tokens
This commit is contained in:
Benjamin Dieleman
2017-07-27 17:27:36 +02:00
parent a1b8d87b47
commit ecc07abb33
3 changed files with 9 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
namespace League\OAuth2\Server\Repositories;
use League\OAuth2\Server\Entities\AuthCodeEntityInterface;
use League\OAuth2\Server\Exception\UniqueTokenIdentifierConstraintViolationException;
/**
* Auth code storage interface.
@@ -27,6 +28,8 @@ interface AuthCodeRepositoryInterface extends RepositoryInterface
* Persists a new auth code to permanent storage.
*
* @param AuthCodeEntityInterface $authCodeEntity
*
* @throws UniqueTokenIdentifierConstraintViolationException
*/
public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity);