<?php

declare(strict_types=1);

namespace App\Actions\Storage\Wiki\Audio;

use App\Actions\Storage\Base\DeleteAction;
use App\Constants\Config\AudioConstants;
use App\Models\Wiki\Audio;
use Illuminate\Support\Facades\Config;

/**
 * @extends DeleteAction<Audio>
 */
class DeleteAudioAction extends DeleteAction
{
    /**
     * The list of disk names.
     */
    public function disks(): array
    {
        return Config::get(AudioConstants::DISKS_QUALIFIED);
    }

    /**
     * Get the path to delete.
     */
    protected function path(): string
    {
        return $this->model->path();
    }
}
