Passed
Push — master ( c6d84a...2633b8 )
by Dāvis
03:50
created

IsTrue::validatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sludio\HelperBundle\Captcha\Validator\Constraint;
4
5
use Symfony\Component\Validator\Constraint;
6
7
/**
8
 * @Annotation
9
 * @Target("PROPERTY")
10
 */
11
class IsTrue extends Constraint
12
{
13
    /**
14
     * The reCAPTCHA validation message
15
     */
16
    public $message = 'sludio_helper.captcha.recaptcha.validator.message';
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getTargets()
22
    {
23
        return Constraint::PROPERTY_CONSTRAINT;
24
    }
25
}
26