<?php

declare(strict_types=1);

namespace KupShop\GTMBundle\Ecommerce;

class ApplyFilterSort extends AbstractEcommerce
{
    private string $eventName = 'applyFilterSort';

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