Files
Toiminnanohjaus/app/Modules/Inventory/Application/Contracts/InventoryCountQueries.php
2026-11-26 16:34:08 +02:00

27 lines
674 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Application\Contracts;
use App\Modules\Inventory\Application\DTOs\InventoryCountLine;
use App\Modules\Inventory\Application\DTOs\InventoryCountSummary;
interface InventoryCountQueries
{
/**
* @return list<InventoryCountSummary> Newest first.
*/
public function counts(): array;
public function findCount(int $id): ?InventoryCountSummary;
/**
* The items of the count in group order and by name: those in its
* groups that are in use, and every item counted in it.
*
* @return list<InventoryCountLine>
*/
public function lines(int $countId): array;
}