1<?php 2 3/* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Symfony\Component\Security\Core\Authentication\RememberMe; 13 14/** 15 * Interface to be implemented by persistent token classes (such as 16 * Doctrine entities representing a remember-me token). 17 * 18 * @author Johannes M. Schmitt <schmittjoh@gmail.com> 19 */ 20interface PersistentTokenInterface 21{ 22 /** 23 * Returns the class of the user. 24 * 25 * @return string 26 */ 27 public function getClass(); 28 29 /** 30 * Returns the username. 31 * 32 * @return string 33 */ 34 public function getUsername(); 35 36 /** 37 * Returns the series. 38 * 39 * @return string 40 */ 41 public function getSeries(); 42 43 /** 44 * Returns the token value. 45 * 46 * @return string 47 */ 48 public function getTokenValue(); 49 50 /** 51 * Returns the time the token was last used. 52 * 53 * @return \DateTime 54 */ 55 public function getLastUsed(); 56} 57