SergioMadness/payment-laravel

View on GitHub
src/contracts/Form.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace professionalweb\payment\contracts;

/**
 * Interface for class renders form
 * @package professionalweb\payment\contracts
 */
interface Form
{
    /**
     * Render form
     *
     * @return string
     */
    public function render(): string;

    /**
     * Render fields
     *
     * @return string
     */
    public function renderFields(): string;

    /**
     * Form action
     *
     * @return string
     */
    public function getAction(): string;

    /**
     * Get form method
     *
     * @return string
     */
    public function getMethod(): string;
}