22 lines
546 B
PHP
22 lines
546 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Inventory\Domain\Contracts;
|
|
|
|
/**
|
|
* Default materials of workflow steps waiting on the tasks made of them,
|
|
* until the assignee records or dismisses them (spec 19.4).
|
|
*/
|
|
interface TaskMaterialSuggestionRepository
|
|
{
|
|
public function add(int $taskId, int $stockItemId, int $quantityMilli): void;
|
|
|
|
/**
|
|
* @return array{id: int, taskId: int, stockItemId: int, quantityMilli: int}|null
|
|
*/
|
|
public function find(int $id): ?array;
|
|
|
|
public function remove(int $id): void;
|
|
}
|