<?php

namespace Formatrica\Submission\Pipeline\Stages;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use Formatrica\Submission\Pipeline\Submission_Context;
use Formatrica\Submission\Pipeline\Submission_Stage;

/**
 * The formatrica_before_submission action.
 */
final class Before_Submission_Stage implements Submission_Stage
{
    public function handle(Submission_Context $ctx): void
    {
        do_action('formatrica_before_submission', $ctx->form_id, $ctx->form, $ctx->request_data, $ctx->context);
    }
}
