Files
Toiminnanohjaus/app/Modules/Machines/Application/Contracts/MaintenanceMaterials.php
T

17 lines
438 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Machines\Application\Contracts;
/**
* Records the stock used at a maintenance through the Inventory module.
*/
interface MaintenanceMaterials
{
/**
* @return bool False when the stock could not be recorded (e.g. the item is out of use).
*/
public function use(int $stockItemId, int $quantityMilli, int $machineId, int $maintenanceRecordId, int $userId): bool;
}