public function setPassword($password)
    {
        if (empty($password)) {
            $this->hashedPassword = null;
        } else {
            $this->hashedPassword = UsersManager::getPasswordHash($password);
        }
    }
public function setPassword($password)
    {
        if (empty($password)) {
            $this->hashedPassword = null;
        } else {
            $this->hashedPassword = UsersManager::getPasswordHash($password);
        }
    }
public function setPassword ( $ password ) { if ( empty ( $ password ) ) { $ this -> hashedPassword = null ; } else { $ this -> hashedPassword = UsersManager :: getPasswordHash ( $ password ) ; } }
Sets the password to authenticate with.

@param string $password
Sets the password to authenticate with .