ldc-cocotte/app/Cqs/Actions/Employee/ImportEmployeesInput.php

19 lines
398 B
PHP
Raw Permalink Normal View History

<?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.');
}
}
}