ItemWishListRepository

Namespace

IO\Repositories

Properties
Type Name Description

DataBase

$db

CustomerService

$customer

Methods
public __construct($dataBase, $customerService)

ItemWishListRepository constructor.

Parameters

Type

Name

Description

DataBase

$dataBase

CustomerService

$customerService

public getItemWishList():array

List all watched variationIds for contact

public getCountedItemWishList():int

Get count WishList entries

public isItemInWishList($variationId):bool
Parameters

Type

Name

Description

int

$variationId

public addItemWishListEntry($variationId, $quantity = 1):mixed
Parameters

Type

Name

Description

int

$variationId

int

$quantity

public removeItemWishListEntry($variationId):bool
Parameters

Type

Name

Description

int

$variationId