Doctrine\OrientDB\Binding\Client\Http\CurlClient::setAuthentication PHP Method

setAuthentication() public method

Sets the authentication string for the next HTTP requests.
public setAuthentication ( String $credentials )
$credentials String
    public function setAuthentication($credentials)
    {
        $this->authentication = $credentials;
        curl_setopt($this->curl, CURLOPT_USERPWD, $credentials);
    }