24 lines
603 B
PHP
24 lines
603 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Machines\Application\DTOs;
|
|
|
|
/**
|
|
* A production step as entered: the machine (null: by hand), the duration
|
|
* per piece in hours as typed ("0,25"), the work type its hours go to, and
|
|
* materials per piece with quantities as typed.
|
|
*/
|
|
final readonly class ProductionStepData
|
|
{
|
|
/**
|
|
* @param list<array{stockItemId: int, quantity: string}> $materials
|
|
*/
|
|
public function __construct(
|
|
public ?int $machineId,
|
|
public string $duration,
|
|
public int $workTypeId,
|
|
public array $materials = [],
|
|
) {}
|
|
}
|