base commit

This commit is contained in:
Mekan1206
2026-07-30 17:24:40 +05:00
commit a794dacd39
345 changed files with 29597 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\DTOs\Import;
readonly class ImportResultDto
{
/**
* @param array<int, string> $errors
*/
public function __construct(
public int $total,
public int $imported,
public int $skipped,
public int $failed,
public array $errors = [],
) {}
/**
* @return array<string, mixed>
*/
public function toArray(): array
{
return [
'total' => $this->total,
'imported' => $this->imported,
'skipped' => $this->skipped,
'failed' => $this->failed,
'errors' => $this->errors,
];
}
}