Track machine counters and maintenance with counter and time intervals
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -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 = '',
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user