<?php

declare(strict_types=1);

namespace KupShop\GTMBundle\Ecommerce;

class ApplyFilterCampaigns extends AbstractEcommerce
{
    private string $eventName = 'applyFilterCampaigns';

    /**
     * Specific PageData.
     *
     * @throws \Exception
     */
    public function getData(&$dataContainer): void
    {
        $dataContainer->event = $this->eventName;
        $dataContainer->filtrValue = ['active' => ''];
        $dataContainer->filtrCampaignId = (string) $this->pageData['id'];
        $dataContainer->filtrCampaignName = $this->pageData['name'];
    }
}
