Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemeey committed Oct 5, 2020
1 parent a5891c0 commit 4a22374
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/PDO_CH.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class PDO_CH{
protected $username = NULL;
protected $password = NULL;
protected $curlOptions = [];
protected $curlTotalTime = NULL; // время последнего выполненного CURL запроса

function __construct(string $dsn, string $username = NULL, string $password, array $options = NULL, $curlOptions = NULL){
$this->dsn = $dsn;
Expand Down Expand Up @@ -138,8 +137,6 @@ protected function call(string $format = NULL, array $queryOptions = NULL, array
$this->setCurlOptions($query, $queryOptions, $curlOptions);
$result = curl_exec($this->curlHundler);

$this->curlTotalTime = curl_getinfo($this->curlHundler, CURLINFO_TOTAL_TIME);

if(curl_errno($this->curlHundler)){
$this->throwError('Curl: '.curl_error($this->curlHundler), curl_errno($this->curlHundler));
}
Expand Down Expand Up @@ -265,8 +262,8 @@ function getMeta(){
return (array)$this->meta;
}

function getTotalTime(){
return (float)$this->curlTotalTime;
function getCurlHundler(){
return $this->curlHundler;
}

}

0 comments on commit 4a22374

Please sign in to comment.