<?php

namespace GriffinForms\Includes\Notifications\Events;

use GriffinForms\Includes\Notifications\NotificationEventInterface;

class FormSubmissionEvent implements NotificationEventInterface
{
    public function getEventId(): string
    {
        return 'form_submission';
    }

    public function getLabel(): string
    {
        return __('Form Submission', 'griffinforms-form-builder');
    }

    public function getSubEvents(): array
    {
        return [
            'initial_submission' => __('Initial Submission', 'griffinforms-form-builder'),
            // TODO: wire submission_edit trigger in a future issue
            'submission_edit'    => __('Submission Edit', 'griffinforms-form-builder'),
        ];
    }
}
