Track machine counters and maintenance with counter and time intervals

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:52:49 +02:00
co-authored by Claude Sonnet 5.5
parent aac579257a
commit 3e1c671949
53 changed files with 2636 additions and 6 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Application\DTOs;
/**
* A maintenance item as entered: the counter interval as typed with its
* counter, the time interval as a period key (day, week, month, year) and
* count, the advance warning in percent, and an optional stock item used
* up at each maintenance with its quantity as typed.
*/
final readonly class MaintenanceItemData
{
public function __construct(
public string $name,
public ?int $counterId = null,
public string $interval = '',
public ?string $period = null,
public int $periodCount = 1,
public int $warningPercent = 90,
public ?string $instructions = null,
public ?int $stockItemId = null,
public string $stockQuantity = '',
) {}
}