summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/RememberMe/PersistentTokenInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'Core/Authentication/RememberMe/PersistentTokenInterface.php')
-rw-r--r--Core/Authentication/RememberMe/PersistentTokenInterface.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/Core/Authentication/RememberMe/PersistentTokenInterface.php b/Core/Authentication/RememberMe/PersistentTokenInterface.php
new file mode 100644
index 0000000..3696d1f
--- /dev/null
+++ b/Core/Authentication/RememberMe/PersistentTokenInterface.php
@@ -0,0 +1,45 @@
+<?php
+
+namespace Symfony\Component\Security\Core\Authentication\RememberMe;
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * Interface to be implemented by persistent token classes (such as
+ * Doctrine entities representing a remember-me token)
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+interface PersistentTokenInterface
+{
+ /**
+ * Returns the username
+ * @return string
+ */
+ function getUsername();
+
+ /**
+ * Returns the series
+ * @return string
+ */
+ function getSeries();
+
+ /**
+ * Returns the token value
+ * @return string
+ */
+ function getTokenValue();
+
+ /**
+ * Returns the last time the cookie was used
+ * @return \DateTime
+ */
+ function getLastUsed();
+} \ No newline at end of file