- Moved employee upsert logic to a new service for better separation of concerns. - Updated EmployeeSyncService to utilize the new EmployeeUpsertService. - Added tests for EmployeeUpsertService to ensure correct functionality.
16 lines
306 B
PHP
16 lines
306 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services;
|
|
|
|
class EmployeeUpsertServiceResult
|
|
{
|
|
public function __construct(
|
|
public readonly int $insertedCount,
|
|
public readonly int $updatedCount,
|
|
/** @var string[] $errors */
|
|
public readonly array $errors,
|
|
) {
|
|
}
|
|
}
|