public function setBasicAuth($username, $password)
    {
        $this->username = $username;
        $this->password = $password;

        return $this;
    }
public function setBasicAuth($username, $password)
    {
        $this->username = $username;
        $this->password = $password;

        return $this;
    }
public function setBasicAuth ( $ username , $ password ) { $ this -> username = $ username ; $ this -> password = $ password ; return $ this ; }
Set username and password for basic authentication.

@param string $username
@param string $password
@return $this
Set username and password for basic authentication .