diff options
Diffstat (limited to 'Core/Authentication/Token/TokenInterface.php')
-rw-r--r-- | Core/Authentication/Token/TokenInterface.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Core/Authentication/Token/TokenInterface.php b/Core/Authentication/Token/TokenInterface.php index add550f..63e2243 100644 --- a/Core/Authentication/Token/TokenInterface.php +++ b/Core/Authentication/Token/TokenInterface.php @@ -22,6 +22,15 @@ use Symfony\Component\Security\Core\User\UserInterface; interface TokenInterface extends \Serializable { /** + * Returns a string representation ofthe Token. + * + * This is only to be used for debugging purposes. + * + * @return string + */ + function __toString(); + + /** * Returns the user roles. * * @return Role[] An array of Role instances. |