diff --git a/src/Interfaces/Buyable.php b/src/Interfaces/Buyable.php index c5da89a7..d25f2b6e 100644 --- a/src/Interfaces/Buyable.php +++ b/src/Interfaces/Buyable.php @@ -6,6 +6,11 @@ interface Buyable { + /** + * Determine whether the buyable object is available for the itemable instance. + */ + public function buyable(Itemable $itemable): bool; + /** * Get the item representation of the buyable instance. */ diff --git a/src/Models/Variant.php b/src/Models/Variant.php index b779a2e7..1d0c1ceb 100644 --- a/src/Models/Variant.php +++ b/src/Models/Variant.php @@ -111,6 +111,14 @@ protected function alias(): Attribute ); } + /** + * Determine whether the buyable object is available for the itemable instance. + */ + public function buyable(Itemable $itemable): bool + { + return true; + } + /** * Get the price by the given type and currency. */