Honeypot
in package
class Honeypot
Table of Contents
- $config : Honeypot
- Our configuration.
- __construct() : mixed
- Constructor.
- attachHoneypot() : mixed
- Attaches Honeypot template to response.
- hasContent() : mixed
- Checks the request if honeypot field has data.
- prepareTemplate() : string
- Prepares the template by adding label content and field name.
Properties
$config
Our configuration.
protected
Honeypot
$config
Methods
__construct()
Constructor.
public
__construct(Honeypot $config) : mixed
Parameters
- $config : Honeypot
Tags
Return values
mixed —attachHoneypot()
Attaches Honeypot template to response.
public
attachHoneypot(ResponseInterface $response) : mixed
Parameters
- $response : ResponseInterface
Return values
mixed —hasContent()
Checks the request if honeypot field has data.
public
hasContent(RequestInterface $request) : mixed
Parameters
- $request : RequestInterface
Return values
mixed —prepareTemplate()
Prepares the template by adding label content and field name.
protected
prepareTemplate(string $template) : string
Parameters
- $template : string