18 lines
390 B
PHP
18 lines
390 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Machines\Domain\Contracts;
|
|
|
|
use App\Modules\Machines\Domain\ValueObjects\ProductionStep;
|
|
|
|
interface ProductionProcessRepository
|
|
{
|
|
/**
|
|
* Replaces the product's production process; no steps removes it.
|
|
*
|
|
* @param list<ProductionStep> $steps
|
|
*/
|
|
public function replace(int $productId, array $steps): void;
|
|
}
|