* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\Module\PsxDesign\Tracker; if (!defined('_PS_VERSION_')) { exit; } use Symfony\Component\HttpFoundation\ServerBag; interface TrackerInterface { /** * Track event on segment * * @param string $event * @param array $properties * @param ServerBag|null $serverBag * * @return void */ public function track(string $event, array $properties = [], ServerBag $serverBag = null): void; /** * @return array */ public function getProperties(): array; /** * @param array $properties */ public function setProperties(array $properties): void; }