ldc-cocotte/app/Cqs/Actions/Employee/ImportEmployeesInput.php
Jérémy Munsch b2989b4967
refactor(employee): update import handling and output structure
- Replaced resource handling with SplFileObject for better readability.
- Introduced ImportEmployeesOutput class for structured results.
- Updated related services and tests to accommodate new structures.
2026-11-10 19:31:34 +01:00

18 lines
398 B
PHP

<?php
declare(strict_types=1);
namespace App\Cqs\Actions\Employee;
use App\Contracts\ActionInput;
final readonly class ImportEmployeesInput implements ActionInput
{
public function __construct(
public \SplFileObject $inputStream
) {
if (! $inputStream->isReadable()) {
throw new \InvalidArgumentException('Input stream must be readable.');
}
}
}