Files

23 lines
620 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Support\VideoWorkflow\StepHandlers;
use App\Models\WorkflowStep;
use App\Support\VideoWorkflow\WorkflowEngine;
interface StepHandler
{
/**
* The WorkflowStep::TYPES value this handler executes.
*/
public function type(): string;
/**
* Do the actual work for this step (call an AI provider, render
* something, etc.) and report the result back through $engine —
* completeStep() on success, failStep() on failure. $step must be
* 'in_progress' when this is called.
*/
public function handle(WorkflowStep $step, WorkflowEngine $engine): void;
}