Completed
Push — master ( 91e961...79ac70 )
by Samuel
11s
created

IdExistConstraint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 4 1
A getFqcn() 0 4 1
1
<?php
2
3
namespace App\Common\Infra\Validator;
4
5
use Symfony\Component\Validator\Constraint;
6
7
class IdExistConstraint extends Constraint
8
{
9
    /**
10
     * @var string
11
     */
12
    public $message = '%className% [%id%] not found';
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