Files
Toiminnanohjaus/app/Modules/Jobs/Domain/Events/TaskMaterialsSuggested.php
T

23 lines
561 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Jobs\Domain\Events;
/**
* A task was made of a workflow step with default materials (spec 19.4):
* the stock items and quantities (in thousandths) suggested to be recorded
* as used on the task once its assignee confirms them.
*/
final readonly class TaskMaterialsSuggested
{
/**
* @param list<array{stockItemId: int, quantityMilli: int}> $materials
*/
public function __construct(
public int $taskId,
public int $jobId,
public array $materials,
) {}
}