Add machines with day-by-day work lists for job tasks

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:43:55 +02:00
co-authored by Claude Sonnet 5.5
parent 0de0e332b2
commit aac579257a
59 changed files with 3803 additions and 1 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Application\DTOs;
/**
* A machine's details as entered. Counters without an id are new.
*/
final readonly class MachineData
{
/**
* @param list<int> $serviceUnitIds
* @param list<array{id: ?int, name: string, unit: string}> $counters
*/
public function __construct(
public string $name,
public string $type,
public ?string $description,
public array $serviceUnitIds,
public ?int $responsibleUserId,
public array $counters = [],
) {}
}