Skip to content

Commit 1377125

Browse files
author
Илья
committed
Add QueryResult.php::getQueryStats()
1 parent b389a15 commit 1377125

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/QueryResult.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public function __construct($result)
5555
throw new Exception('Unknown result');
5656
}
5757

58-
if(isset($result->costInfo)){
59-
$this->costInfo = $result->costInfo;
60-
}
6158
if (method_exists($result, 'getQueryStats'))
6259
{
6360
$this->queryStats = $result->getQueryStats();
@@ -255,11 +252,11 @@ protected function fillRows($rows)
255252
}
256253

257254
/**
258-
* @return CostInfo|null
255+
* @return QueryStats|null
259256
*/
260-
public function costInfo()
257+
public function getQueryStats(): ?QueryStats
261258
{
262-
return $this->costInfo;
259+
return $this->queryStats;
263260
}
264261

265262
}

0 commit comments

Comments
 (0)