leilukin-tumbleblog/includes/interface/CaptchaProvider.php

19 lines
548 B
PHP

<?php
/**
* Interface: CaptchaProvider
* Describes the functions required by CaptchaProvider implementations.
*/
interface CaptchaProvider {
/**
* Function: generateCaptcha
* Returns the HTML form elements for the captcha challenge.
*/
public static function generateCaptcha(): string;
/**
* Function: checkCaptcha
* Checks the response and returns true (success) or false (failure).
*/
public static function checkCaptcha(): bool;
}