Files

24 lines
528 B
PHP

<?php
declare(strict_types=1);
namespace App\Events\Wiki\Video\Script;
use App\Actions\Storage\Wiki\Video\Script\DeleteScriptAction;
use App\Contracts\Events\RemoveFromStorageEvent;
use App\Events\BaseEvent;
use App\Models\Wiki\Video\VideoScript;
/**
* @extends BaseEvent<VideoScript>
*/
class VideoScriptForceDeleting extends BaseEvent implements RemoveFromStorageEvent
{
public function removeFromStorage(): void
{
$action = new DeleteScriptAction($this->getModel());
$action->handle();
}
}