ReCaptchaConstraint   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatedBy() 0 4 1
1
<?php
2
/*
3
* This file is part of the ReCaptcha Validator Component.
4
*
5
* (c) Ilya Pokamestov
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
11
namespace DS\Component\ReCaptchaValidator\Validator;
12
13
use Symfony\Component\Validator\Constraint;
14
15
/**
16
 * ReCaptcha Constraint.
17
 *
18
 * @author Ilya Pokamestov <[email protected]>
19
 */
20
class ReCaptchaConstraint extends Constraint
21
{
22
    /** @var string */
23
    public $message = 'ds.recaptcha.invalid';
24
    /** @var bool $enabled */
25
    public $enabled = true;
26
27
    /** @return string */
28
    public function validatedBy()
29
    {
30
        return 'ds_re_captcha.validator';
31
    }
32
}
33