phpDocumentor

ShoppingCartFactory
in package

Table of Contents

createCustomerId()  : CustomerId
Creates a new instance of Customer ID
createProductId()  : ProductId
Creates a new instance of Product ID
createSelectedOption()  : SelectedOption
Creates a new instance of Selected Option
createSelectedOptions()  : SelectedOptions
Creates a new instance of Selected Options
createShoppingCartItem()  : ShoppingCartItem
Creates a new instance of Shopping Cart
createShoppingCartItemId()  : ShoppingCartItemId
Creates a new instance of Shopping Cart Item ID
createShoppingCartItems()  : ShoppingCartItems
Creates a new instance of Shopping Cart Items

Methods

createSelectedOption()

Creates a new instance of Selected Option

public createSelectedOption(string $optionKey, string $optionValue) : SelectedOption
Parameters
$optionKey : string
$optionValue : string
Return values
SelectedOption

createShoppingCartItem()

Creates a new instance of Shopping Cart

public createShoppingCartItem(string $productId, int $shoppingCartItemId, string $itemNumber, string $title, string $image, int $amount, DateTimeImmutable $addedAt, SelectedOptions $selectedOptions) : ShoppingCartItem
Parameters
$productId : string
$shoppingCartItemId : int
$itemNumber : string
$title : string
$image : string
$amount : int
$addedAt : DateTimeImmutable
$selectedOptions : SelectedOptions
Return values
ShoppingCartItem

Search results