AppBundle\Entity\User::setPassword PHP Méthode

setPassword() public méthode

public setPassword ( $password )
    public function setPassword($password)
    {
        $this->password = $password;
    }

Usage Example

 public function setUp()
 {
     $this->user = new User();
     $this->user->setUsername('test');
     $this->user->setEmail('*****@*****.**');
     $this->user->setPassword('test');
     $this->log = new StressLog();
     $this->log->setLocaltime(new \DateTime());
     $this->log->setLevel(6);
     $this->log->setUser($this->user);
 }
All Usage Examples Of AppBundle\Entity\User::setPassword