2025-07-01 21:33:11 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Extensions\Captcha\Schemas;
|
|
|
|
|
|
2026-01-27 11:36:07 +01:00
|
|
|
use BackedEnum;
|
2025-09-08 13:12:33 -04:00
|
|
|
use Filament\Schemas\Components\Component;
|
2025-07-01 21:33:11 -04:00
|
|
|
|
|
|
|
|
interface CaptchaSchemaInterface
|
|
|
|
|
{
|
|
|
|
|
public function getId(): string;
|
|
|
|
|
|
|
|
|
|
public function getName(): string;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return array<string, string|string[]|bool|null>
|
|
|
|
|
*/
|
|
|
|
|
public function getConfig(): array;
|
|
|
|
|
|
|
|
|
|
public function isEnabled(): bool;
|
|
|
|
|
|
|
|
|
|
public function getFormComponent(): Component;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return Component[]
|
|
|
|
|
*/
|
|
|
|
|
public function getSettingsForm(): array;
|
|
|
|
|
|
2026-01-27 11:36:07 +01:00
|
|
|
public function getIcon(): null|string|BackedEnum;
|
2025-07-01 21:33:11 -04:00
|
|
|
|
2025-07-09 13:51:43 +02:00
|
|
|
public function validateResponse(?string $captchaResponse = null): void;
|
2025-07-01 21:33:11 -04:00
|
|
|
}
|