feat: refactor cart and bundle handling to support Buyable interface for improved flexibility

This commit is contained in:
2026-07-14 16:41:34 -03:00
parent 562b48b3bd
commit ab042acf9b
11 changed files with 171 additions and 144 deletions

View File

@@ -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;