mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
41 lines
688 B
PHP
41 lines
688 B
PHP
<?php
|
|
/**
|
|
* Captcha interface
|
|
*
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Captcha\Model;
|
|
|
|
/**
|
|
* Captcha Model Interface
|
|
*
|
|
* @api
|
|
* @since 100.0.2
|
|
*/
|
|
interface CaptchaInterface
|
|
{
|
|
/**
|
|
* Generates captcha
|
|
*
|
|
* @abstract
|
|
* @return void
|
|
*/
|
|
public function generate();
|
|
|
|
/**
|
|
* Checks whether word entered by user corresponds to the one generated by generate()
|
|
*
|
|
* @param string $word
|
|
* @return bool
|
|
* @abstract
|
|
*/
|
|
public function isCorrect($word);
|
|
|
|
/**
|
|
* Get Block Name
|
|
* @return string
|
|
*/
|
|
public function getBlockName();
|
|
}
|