PHP Form Submission Interface
<?php
namespace App\Http\Controllers;
/**
* Structures the methods and the flow order that a form submission class should implement.
*
* @package App\Http\Controllers
*/
interface FormSubmissionInterface
{
/**
* Handler for delegating flow of control for form submission events.
*
* @return mixed
*/
public function handleFormSubmission();
/**
* Filters post data.
*
* @return mixed
*/
public function filterFormData();
/**
* Validates post data.
*
* @return mixed
*/
public function validateFormData();
/**
* Sanitizes post data.
*
* @return mixed
*/
public function sanitizeFormData();
/**
* Prepares post data by manipulating and alerting the data format.
*
* @return mixed
*/
public function prepareFormData();
/**
* Handles post data (i.e., inserts or updates database record).
*
* @return mixed
*/
public function handleFormData();
}