ProductCard
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- Product constructor.
- getCardData() : array<string|int, mixed>
- getProductId() : string
- generateAssetsInCardData() : void
Properties
$cardData
private
array<string|int, mixed>
$cardData
$id
private
string
$id
Methods
__construct()
Product constructor.
public
__construct(string $productId, array<string|int, mixed> $cardData) : mixed
Initializes a ProductCard object by loading product data from the ProductsCollection or use $productData array.
Parameters
- $productId : string
- $cardData : array<string|int, mixed>
Tags
getCardData()
public
getCardData() : array<string|int, mixed>
Return values
array<string|int, mixed>getProductId()
public
getProductId() : string
Return values
stringgenerateAssetsInCardData()
private
generateAssetsInCardData() : void