leilukin-tumbleblog/includes/interface/CaptchaProvider.php

21 lines
566 B
PHP
Raw 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.
*/
2025-01-13 09:56:01 +00:00
public static function generateCaptcha(
): string;
2024-06-20 14:10:42 +00:00
/**
* Function: checkCaptcha
* Checks the response and returns true (success) or false (failure).
*/
2025-01-13 09:56:01 +00:00
public static function checkCaptcha(
): bool;
2024-06-20 14:10:42 +00:00
}