13 lines
275 B
PHP
13 lines
275 B
PHP
<?php
|
|
|
|
namespace Modules\Commerce\Contracts;
|
|
|
|
use Modules\Commerce\Models\Product;
|
|
|
|
interface InventoryProvider
|
|
{
|
|
public function adjust(Product $product, int $quantity, string $reason, ?int $userId = null): void;
|
|
|
|
public function available(Product $product): int;
|
|
}
|