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