ItemLastSeenService

This service class contains function related to the "last seen items" functionality.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Constants
Type Name Value Description

int

MAX_COUNT

20

Properties
Type Name Description

``

$cachingRepository

``

$basketRepository

Methods
public __construct($cachingRepository)

ItemLastSeenService constructor.

Parameters

Type

Name

Description

CachingRepository

$cachingRepository

public setLastSeenItem($variationId)

Adds a new item to the last seen cache

Parameters

Type

Name

Description

int

$variationId

Variation id of the item