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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CustomMedalsImportResult | 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 an import of custom medals did. | |
| 9 | */ | |
| 10 | final class CustomMedalsImportResult | |
| 11 | { | |
| 12 | /** Medals the user did not have. */ | |
| 13 | public int $added = 0; | |
| 14 | ||
| 15 | /** Medals at a higher tier than the user's. */ | |
| 16 | public int $upgraded = 0; | |
| 17 | ||
| 18 | /** Medals the user already had at the same or a higher tier. */ | |
| 19 | public int $kept = 0; | |
| 20 | ||
| 21 | /** @var list<string> what was not imported */ | |
| 22 | public array $errors = []; | |
| 23 | } |