2026-11-10 18:08:41 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Cqs\Actions\Employee;
|
|
|
|
|
|
|
|
|
|
use Webmozart\Assert\Assert;
|
|
|
|
|
|
2026-11-10 19:29:20 +01:00
|
|
|
final readonly class ImportEmployeesOutput
|
2026-11-10 18:08:41 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @param array<int, string> $errors
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
public int $insertedCount,
|
|
|
|
|
public int $updatedCount,
|
|
|
|
|
public array $errors
|
|
|
|
|
) {
|
|
|
|
|
Assert::greaterThanEq($insertedCount, 0);
|
|
|
|
|
Assert::greaterThanEq($updatedCount, 0);
|
|
|
|
|
Assert::allString($errors);
|
|
|
|
|
}
|
|
|
|
|
}
|