Passed
Push — dev ( 40f0b5...3a2e98 )
by Fike
02:50
created

ValidParameterName   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatedBy() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\Mapping\Validation\Constraint;
6
7
use Symfony\Component\Validator\Constraint;
8
9
/**
10
 * @Annotation
11
 */
12
class ValidParameterName extends Constraint
13
{
14
    public $illegalValueMessage = 'Illegal value provided for ValidParameterName constraint';
15
    public $missingParameterMessage = 'Parameter `{{ name }}` doesn\'t exist';
16
    public $message = 'Parameter `{{ name }}` should be named as `{{ id }}`';
17
18
    public function validatedBy()
19
    {
20
        return ValidParameterNameValidator::class;
21
    }
22
}
23