26 lines
710 B
PHP
26 lines
710 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Machines\Application\Contracts;
|
|
|
|
use App\Modules\Machines\Application\DTOs\ProductionStepSummary;
|
|
|
|
/**
|
|
* Production processes of quick sale products (spec 19.7). The Sales
|
|
* module reads them through this contract when an order is sent.
|
|
*/
|
|
interface ProductionProcessQueries
|
|
{
|
|
/**
|
|
* @return list<ProductionStepSummary> In order; empty without a process.
|
|
*/
|
|
public function processOf(int $productId): array;
|
|
|
|
/**
|
|
* @param list<int> $productIds
|
|
* @return array<int, list<ProductionStepSummary>> By product id; products without a process are left out.
|
|
*/
|
|
public function processesOf(array $productIds): array;
|
|
}
|