AppBundle\Entity\User::setUsername PHP Method

setUsername() public method

public setUsername ( $username )
    public function setUsername($username)
    {
        $this->username = $username;
    }

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::setUsername