<?php

declare(strict_types=1);

namespace App\Events\List\Playlist;

use App\Contracts\Events\AssignHashidsEvent;
use App\Events\Base\List\ListCreatedEvent;
use App\Models\List\Playlist;

/**
 * @extends ListCreatedEvent<Playlist>
 */
class PlaylistCreated extends ListCreatedEvent implements AssignHashidsEvent
{
    public function getModel(): Playlist
    {
        return $this->model;
    }

    /**
     * Get the Hashids connection.
     *
     * @return string
     */
    public function getHashidsConnection(): ?string
    {
        return 'playlists';
    }
}
