123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /*
- * This file is part of the Sonata project.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sonata\UserBundle\Entity;
- use FOS\UserBundle\Entity\User as AbstractedUser;
- class BaseUser extends AbstractedUser
- {
- /**
- * @return \DateTime
- */
- public function getCredentialsExpireAt()
- {
- return $this->credentialsExpireAt;
- }
- public function setCredentialsExpireAt(\DateTime $date = null)
- {
- $this->credentialsExpireAt = $date;
- }
- public function __toString()
- {
- return $this->getUsername() ?: '-';
- }
- }
|