Completed
Push — master ( c9e866...91e961 )
by Samuel
10s
created

IdDoesNotExistConstraint::getMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Common\Infra\Validator;
4
5
use Symfony\Component\Validator\Constraint;
6
7
class IdDoesNotExistConstraint extends Constraint
8
{
9
    /**
10
     * @var string
11
     */
12
    public $message = '%className% [%id%] already exist';
13
14
    /**
15
     * @var string
16
     */
17
    public $fqcn;
18
19
    /**
20
     * @return string
21
     */
22
    public function getMessage(): string
23
    {
24
        return $this->message;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getFqcn(): string
31
    {
32
        return $this->fqcn;
33
    }
34
}
35