diff options
Diffstat (limited to 'Csrf/CsrfTokenManagerInterface.php')
-rw-r--r-- | Csrf/CsrfTokenManagerInterface.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Csrf/CsrfTokenManagerInterface.php b/Csrf/CsrfTokenManagerInterface.php index 878237b..2b9254b 100644 --- a/Csrf/CsrfTokenManagerInterface.php +++ b/Csrf/CsrfTokenManagerInterface.php @@ -23,7 +23,8 @@ interface CsrfTokenManagerInterface * Returns a CSRF token for the given ID. * * If previously no token existed for the given ID, a new token is - * generated. Otherwise the existing token is returned. + * generated. Otherwise the existing token is returned (with the same value, + * not the same instance). * * @param string $tokenId The token ID. You may choose an arbitrary value * for the ID @@ -51,8 +52,8 @@ interface CsrfTokenManagerInterface * * @param string $tokenId The token ID * - * @return Boolean Returns true if a token existed for this ID, false - * otherwise + * @return string|null Returns the removed token value if one existed, NULL + * otherwise */ public function removeToken($tokenId); |