2026-11-10 18:08:41 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Cqs\Actions\Employee;
|
|
|
|
|
|
|
|
|
|
use App\Contracts\ActionInput;
|
|
|
|
|
|
|
|
|
|
final readonly class ImportEmployeesInput implements ActionInput
|
|
|
|
|
{
|
|
|
|
|
public function __construct(
|
2026-11-10 19:29:20 +01:00
|
|
|
public \SplFileObject $inputStream
|
2026-11-10 18:08:41 +01:00
|
|
|
) {
|
2026-11-10 19:29:20 +01:00
|
|
|
if (! $inputStream->isReadable()) {
|
2026-11-10 18:08:41 +01:00
|
|
|
throw new \InvalidArgumentException('Input stream must be readable.');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|