21 lines
485 B
PHP
21 lines
485 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Sales\Application\Contracts;
|
|
|
|
use App\Modules\Sales\Domain\ValueObjects\OrderStep;
|
|
|
|
/**
|
|
* The production processes of consumer products (spec 19.7), read from the
|
|
* Machines module.
|
|
*/
|
|
interface ProductionProcesses
|
|
{
|
|
/**
|
|
* @param list<int> $productIds
|
|
* @return array<int, list<OrderStep>> By product id; products without a process are left out.
|
|
*/
|
|
public function stepsOf(array $productIds): array;
|
|
}
|