Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CsvImportResult | n/a | 0 / 0 | n/a | 0 / 0 | 0 | n/a | 0 / 0 | |||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace App\Import; | |
| 6 | ||
| 7 | /** | |
| 8 | * What a CSV import of agent stats did. | |
| 9 | */ | |
| 10 | final class CsvImportResult | |
| 11 | { | |
| 12 | public int $imported = 0; | |
| 13 | ||
| 14 | /** Stats with a datetime that was already imported. */ | |
| 15 | public int $skipped = 0; | |
| 16 | ||
| 17 | /** @var list<string> "line: message" for rows that were not imported */ | |
| 18 | public array $errors = []; | |
| 19 | } |