<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie\Providers;

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

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