ClassesBigCommerceCartCart Mapper

Cart_Mapper

Maps a cart from the API to a standard format usable by the REST API and other templates.

  • Full name: \BigCommerce\Cart\Cart_Mapper

Methods

__construct

Cart_Mapper constructor.

public __construct(\BigCommerce\Api\v3\Model\Cart $cart): mixed

Parameters:

ParameterTypeDescription
$cart\BigCommerce\Api\v3\Model\CartThe cart to map.

map

Maps the cart data into a format for API and template usage.

public map(): array

Return Value:

Mapped cart data.



Automatically generated on 2025-01-21