Zend\Captcha\AdapterInterface
Generic Captcha adapter interface
Each specific captcha implementation should implement this interface
Synopsis
interface AdapterInterface
extends ValidatorInterface
{
- // methods
- public string generate()
- public AdapterInterface setName()
- public string getName()
- public string getHelperName()
- // Inherited methods from ValidatorInterface
- public bool isValid()
- public array getMessages()
Hierarchy
Extends
Implemented by
Methods
public
- generate() — Generate a new captcha
- getHelperName() — Get helper name to use when rendering this captcha type
- getName() — Get captcha name
- setName() — Set captcha name
Inherited from Zend\Validator\ValidatorInterface
public
- getMessages() — Returns an array of messages that explain why the most recent isValid() call returned false. The array keys are validation failure message identifiers, and the array values are the corresponding human-readable message strings.
- isValid() — Returns true if and only if $value meets the validation requirements