for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
//----------------------------------------------------------------------
//
// Copyright (C) 2017 Artem Rodygin
// You should have received a copy of the MIT License along with
// this file. If not, see <http://opensource.org/licenses/MIT>.
namespace Pignus\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* User trait.
*
* @ORM\MappedSuperclass
*/
trait UserTrait
{
* @see \Symfony\Component\Security\Core\User\UserInterface
* {@inheritdoc}
public function getPassword()
return null;
}
public function getSalt()
public function eraseCredentials()
* @see \Symfony\Component\Security\Core\User\AdvancedUserInterface
public function isEnabled()
return true;
public function isAccountNonExpired()
public function isCredentialsNonExpired()
public function isAccountNonLocked()