12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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();
- }
|