feat: refactor cart and bundle handling to support Buyable interface for improved flexibility
This commit is contained in:
@@ -2,8 +2,11 @@
|
||||
|
||||
namespace App\Domains\Shared\Contracts;
|
||||
|
||||
interface Stockable
|
||||
interface Buyable
|
||||
{
|
||||
public function getPrice(): float;
|
||||
public function getName(): string;
|
||||
|
||||
public function incrementRealStock(int $amount): void;
|
||||
public function decrementRealStock(int $amount): void;
|
||||
|
||||
Reference in New Issue
Block a user