id; } /** * Set username * * @param string $username * * @return User */ public function setUsername($username) { $this->username = $username; return $this; } /** * Get username * * @return string */ public function getUsername() { return $this->username; } /** * Set password * * @param string $password * * @return User */ public function setPassword($password) { $this->password = $password; return $this; } /** * Get password * * @return string */ public function getPassword() { return $this->password; } /** * Set salt * * @param string $salt * * @return User */ public function setSalt($salt) { $this->salt = $salt; return $this; } /** * Get salt * * @return string */ public function getSalt() { return $this->salt; } /** * Set roles * * @param array $roles * * @return User */ public function setRoles($roles) { $this->roles = $roles; return $this; } /** * Get roles * * @return array */ public function getRoles() { return $this->roles; } public function eraseCredentials() { } }