26 lines
678 B
PHP
26 lines
678 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Catalog\Application\DTOs;
|
|
|
|
/**
|
|
* A step of a workflow template. $workTypeId is the step's own work type
|
|
* (null: the template's), $effectiveWorkTypeId the one its task gets, and
|
|
* $materials the default materials suggested on the task.
|
|
*/
|
|
final readonly class WorkflowStepSummary
|
|
{
|
|
/**
|
|
* @param list<WorkflowStepMaterialSummary> $materials
|
|
*/
|
|
public function __construct(
|
|
public string $title,
|
|
public ?string $description,
|
|
public ?int $workTypeId,
|
|
public int $effectiveWorkTypeId,
|
|
public string $workTypeName,
|
|
public array $materials = [],
|
|
) {}
|
|
}
|