34 lines
715 B
PHP
Executable File
34 lines
715 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @author Amasty Team
|
|
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
|
* @package Admin Actions Log for Magento 2
|
|
*/
|
|
|
|
namespace Amasty\AdminActionsLog\Api;
|
|
|
|
interface VisitHistoryManagerInterface
|
|
{
|
|
/**
|
|
* Initialize Visit History tracking for current admin.
|
|
*/
|
|
public function startVisit(): void;
|
|
|
|
/**
|
|
* Track Visit History end time, i.e. admin logout or session destroy.
|
|
*
|
|
* @param string|null $sessionId
|
|
*/
|
|
public function endVisit(string $sessionId = null): void;
|
|
|
|
/**
|
|
* Clear whole Visit History storage.
|
|
*
|
|
* @param int|null $period
|
|
*/
|
|
public function clear(int $period = null): void;
|
|
}
|