diff --git a/composer.json b/composer.json index 548cd68..b584d2e 100755 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "license": "", "authors": [], "minimum-stability": "stable", - "version": "1.1.7.1", + "version": "1.1.7.2", "require": { "php": ">=7", "silex/silex": "^2.0", diff --git a/src/ImportResult.php b/src/ImportResult.php index 61733dc..a9417ef 100644 --- a/src/ImportResult.php +++ b/src/ImportResult.php @@ -82,30 +82,18 @@ public function addInsertTime(float $time): self return $this; } - public function getSelectTime(): float + public function getSelectTime(): array { - if (!count($this->selectTime)) { - return 0.0; - } - - return array_sum($this->selectTime) / count($this->selectTime); + return $this->selectTime; } - public function getConvertTime(): float + public function getConvertTime(): array { - if (!count($this->convertTime)) { - return 0.0; - } - - return array_sum($this->convertTime) / count($this->convertTime); + return $this->convertTime; } - public function getInsertTime(): float + public function getInsertTime(): array { - if (!count($this->insertTime)) { - return 0.0; - } - - return array_sum($this->insertTime) / count($this->insertTime); + return $this->insertTime; } }