Files
2026-11-26 16:34:08 +02:00

29 lines
720 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Application\DTOs;
/**
* A stock count as listed. $groupNames is empty for the whole stock;
* $confirmedAt is "Y-m-d H:i" in the company's time zone.
*/
final readonly class InventoryCountSummary
{
/**
* @param list<string> $groupNames
*/
public function __construct(
public int $id,
public string $countedOn,
public bool $isConfirmed,
public array $groupNames,
public string $startedByName,
public ?string $confirmedByName,
public ?string $confirmedAt,
public int $countedItems,
public ?int $valueBeforeCents,
public ?int $valueAfterCents,
) {}
}