Avoid re-parsing the entire CSV file in each batch handler by including the film data in the message payload itself. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
307 B
PHP
17 lines
307 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Message;
|
|
|
|
readonly class ImportFilmsBatchMessage
|
|
{
|
|
/**
|
|
* @param list<array{name: string, year: int, ltbxdUri: string, date: string}> $films
|
|
*/
|
|
public function __construct(
|
|
public int $importId,
|
|
public array $films,
|
|
) {}
|
|
}
|