<?php

declare(strict_types=1);

namespace KupShop\CatalogBundle\Event;

use KupShop\CatalogBundle\ProductList\FilterParams;
use KupShop\CatalogBundle\ProductList\ProductList;
use Symfony\Contracts\EventDispatcher\Event;

class CatalogEvent extends Event
{
    public const TYPE_CATEGORY = 'category';
    public const TYPE_SEARCH = 'search';
    public const TYPE_INSERT_PRODUCTS = 'insert_products';

    public ProductList $productList;
    public FilterParams $filterParams;
    public string $type;

    public function __construct(ProductList $productList, FilterParams $filterParams, string $type)
    {
        $this->productList = $productList;
        $this->filterParams = $filterParams;
        $this->type = $type;
    }
}
