<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Vzdelavanie\Providers;

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

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