<?php

namespace SugarCalendarBookings\Antispam\Captcha;

/**
 * Contract for anti-spam token verifiers.
 *
 * @since 1.5.0
 */
interface CaptchaVerifierInterface {

	/**
	 * Verify a captured token.
	 *
	 * @since 1.5.0
	 *
	 * @param string $token   Token captured from the client.
	 * @param string $context Verification context (e.g. 'booking_form_create').
	 *
	 * @return bool
	 */
	public function verify( string $token, string $context = '' ): bool;
}
