HCaptchaProtector::setFieldMapping()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace X3dgoo\HCaptcha\Forms;
4
5
use SilverStripe\SpamProtection\SpamProtector;
6
7
class HCaptchaProtector implements SpamProtector
8
{
9
    /**
10
     * Return the Field that we will use in this protector
11
     * @return string
12
     */
13
    public function getFormField($name = 'HCaptchaField', $title = 'Captcha', $value = null)
14
    {
15
        return HCaptchaField::create($name, $title);
16
    }
17
18
    /**
19
     * Not used by HCaptcha
20
     */
21
    public function setFieldMapping($fieldMapping)
22
    {
23
    }
24
}
25