Bee-Lab/BeelabUserBundle

View on GitHub
User/UserInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Beelab\UserBundle\User;

use Symfony\Component\Security\Core\User\AdvancedUserInterface;

/**
 * Interface used by UserManager and User entity.
 */
interface UserInterface extends AdvancedUserInterface
{
    /**
     * @return string
     */
    public function getPlainPassword();

    /**
     * @return string
     */
    public function getSalt();

    /**
     * @param string
     *
     * @return bool
     */
    public function hasRole($role);

    /**
     * @param \DateTime $date
     */
    public function setLastLogin(\DateTime $date);

    /**
     * @param string
     */
    public function setPassword($password);
}