public function setAuth($username, $password)
    {
        if (!empty($username) && !empty($password)) {
            $this->username = stripslashes(trim($username));
            $this->password = stripslashes(trim($password));
        }
    }
public function setAuth($username, $password)
    {
        if (!empty($username) && !empty($password)) {
            $this->username = stripslashes(trim($username));
            $this->password = stripslashes(trim($password));
        }
    }
public function setAuth ( $ username , $ password ) { if ( ! empty ( $ username ) && ! empty ( $ password ) ) { $ this -> username = stripslashes ( trim ( $ username ) ) ; $ this -> password = stripslashes ( trim ( $ password ) ) ; } }
Set authentication to the cURL request.

@param string $username
@param string $password
Set authentication to the cURL request .