Files
Toiminnanohjaus/app/Modules/Machines/Application/DTOs/MaintenanceItemData.php
T

27 lines
806 B
PHP

<?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 = '',
) {}
}