<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie;

use Seka\Vzdelavanie\Events\Kniznica\Frontend\SekciaOpened;
use Seka\Vzdelavanie\Events\Testovanie\Frontend\TestGenerated;
use Seka\Vzdelavanie\Events\Kniznica\Frontend\UcebnyMaterialOpened;
use Seka\Vzdelavanie\Listeners\Kniznica\SekciaCreatePopularityRecord;
use Seka\Vzdelavanie\Listeners\Testovanie\TestCreatePopularityRecord;
use Seka\Vzdelavanie\Listeners\Kniznica\UcebnyMaterialCreatePopularityRecord;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

/**
 * Class EventServiceProvider
 *
 * @package Seka\Vzdelavanie
 */
final class EventServiceProvider extends ServiceProvider
{
    /**
     * @var \string[][]
     */
    protected $listen = [
        UcebnyMaterialOpened::class => [
            UcebnyMaterialCreatePopularityRecord::class,
        ],
        SekciaOpened::class => [
            SekciaCreatePopularityRecord::class,
        ],
        TestGenerated::class => [
            TestCreatePopularityRecord::class,
        ],
    ];
}
