| 1 | <?php |
||
| 9 | class ImportStats { |
||
| 10 | |||
| 11 | private $count = 0; |
||
| 12 | private $errorCount = 0; |
||
| 13 | private $durationInMs; |
||
| 14 | |||
| 15 | 5 | public function recordSuccess() { |
|
| 18 | |||
| 19 | 5 | public function recordError( \Exception $ex ) { |
|
| 23 | |||
| 24 | 1 | public function setDuration( float $durationInMs ) { |
|
| 27 | |||
| 28 | 2 | public function getEntityCount(): int { |
|
| 31 | |||
| 32 | 1 | public function getErrorCount(): int { |
|
| 35 | |||
| 36 | 1 | public function getSuccessCount(): int { |
|
| 39 | |||
| 40 | 4 | public function getErrorRatio(): float { |
|
| 47 | |||
| 48 | public function getDurationInMs(): float { |
||
| 51 | |||
| 52 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.