ItemWishListRepository

Namespace

IO\Repositories

Properties
Type Name Description

DataBase

$db

ContactRepositoryContract

$contactRepository

Methods
public __construct($dataBase, $contactRepository)

ItemWishListRepository constructor.

Parameters

Type

Name

Description

DataBase

$dataBase

ContactRepositoryContract

$contactRepository

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