leilukin-tumbleblog/includes/interface/CaptchaProvider.php

19 lines
548 B
PHP
Raw Permalink Normal View History

2024-06-20 14:10:42 +00:00
<?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;
}