¨4.0.1¨
This commit is contained in:
@@ -2,43 +2,54 @@
|
||||
|
||||
namespace Modules\Cart\Facades;
|
||||
|
||||
use Modules\Support\Money;
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Cart\CartCoupon;
|
||||
use Modules\Shipping\Method;
|
||||
use Modules\Coupon\Entities\Coupon;
|
||||
use Modules\Cart\CartShippingMethod;
|
||||
use Darryldecode\Cart\CartCollection;
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Darryldecode\Cart\CartConditionCollection;
|
||||
use Illuminate\Support\Collection as SupportCollection;
|
||||
|
||||
/**
|
||||
* @method static \Modules\Cart\Cart instance()
|
||||
* @method static void clear()
|
||||
* @method static void store(int $productId, int $qty, array $options = [])
|
||||
* @method static void store(int $productId, int $variantId, int $qty, array $options = [], array $variations = [])
|
||||
* @method static void updateQuantity(string $id, int $qty)
|
||||
* @method static \Darryldecode\Cart\CartCollection items()
|
||||
* @method static CartCollection items()
|
||||
* @method static int addedQty(int $productId)
|
||||
* @method static int findByProductId(int $productId)
|
||||
* @method static \Illuminate\Database\Eloquent\Collection crossSellProducts()
|
||||
* @method static \Illuminate\Database\Eloquent\Collection getAllProducts()
|
||||
* @method static crossSellProducts()
|
||||
* @method static Collection getAllProducts()
|
||||
* @method static void reduceStock()
|
||||
* @method static void restoreStock()
|
||||
* @method static int quantity()
|
||||
* @method static bool hasAvailableShippingMethod()
|
||||
* @method static \Illuminate\Support\Collection availableShippingMethods()
|
||||
* @method static SupportCollection availableShippingMethods()
|
||||
* @method static bool hasShippingMethod()
|
||||
* @method static \Modules\Cart\CartShippingMethod shippingMethod()
|
||||
* @method static \Modules\Support\Money shippingCost()
|
||||
* @method static \Modules\Support\Money addShippingMethod(\Modules\Shipping\Method $shippingMethod)
|
||||
* @method static CartShippingMethod shippingMethod()
|
||||
* @method static Money shippingCost()
|
||||
* @method static Money addShippingMethod(Method $shippingMethod)
|
||||
* @method static void removeShippingMethod()
|
||||
* @method static bool hasCoupon()
|
||||
* @method static bool couponAlreadyApplied()
|
||||
* @method static \Modules\Cart\CartCoupon coupon()
|
||||
* @method static \Modules\Support\Money discount()
|
||||
* @method static void applyCoupon(\Modules\Coupon\Entities\Coupon $coupon)
|
||||
* @method static CartCoupon coupon()
|
||||
* @method static Money discount()
|
||||
* @method static void applyCoupon(Coupon $coupon)
|
||||
* @method static void removeCoupon()
|
||||
* @method static void hasTax()
|
||||
* @method static \Darryldecode\Cart\CartConditionCollection taxes()
|
||||
* @method static \Modules\Support\Money tax()
|
||||
* @method static void addTaxes(\Illuminate\Http\Request $request)
|
||||
* @method static CartConditionCollection taxes()
|
||||
* @method static Money tax()
|
||||
* @method static void addTaxes(Request $request)
|
||||
* @method static void removeTaxes()
|
||||
* @method static \Modules\Support\Money subTotal()
|
||||
* @method static \Modules\Support\Money total()
|
||||
* @method static Money subTotal()
|
||||
* @method static Money total()
|
||||
* @method static array toArray()
|
||||
* @method static array jsonSerialize()
|
||||
* @method static bool remove(string $cartItemId)
|
||||
* @method static bool allItemsAreVirtual()
|
||||
*
|
||||
* @see \Modules\Cart\Cart
|
||||
*/
|
||||
@@ -49,7 +60,7 @@ class Cart extends Facade
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function getFacadeAccessor()
|
||||
protected static function getFacadeAccessor(): string
|
||||
{
|
||||
return \Modules\Cart\Cart::class;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user