23 lines
519 B
PHP
23 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Machines\Application\DTOs;
|
|
|
|
use App\Modules\Machines\Domain\Enums\CounterUnit;
|
|
|
|
/**
|
|
* A machine counter with its latest reading (in thousandths of the unit),
|
|
* read at "Y-m-d H:i" in the company's time zone.
|
|
*/
|
|
final readonly class CounterSummary
|
|
{
|
|
public function __construct(
|
|
public int $id,
|
|
public string $name,
|
|
public CounterUnit $unit,
|
|
public ?int $readingMilli = null,
|
|
public ?string $readAt = null,
|
|
) {}
|
|
}
|