<?php

declare(strict_types=1);

namespace App\Actions\Storage\Wiki\Video;

use App\Actions\Storage\Base\DeleteAction;
use App\Constants\Config\VideoConstants;
use App\Models\Wiki\Video;
use Illuminate\Support\Facades\Config;

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

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