This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
12
/**
13
* @var int
14
*/
15
protected $min;
16
17
/**
18
* @var string
19
*/
20
protected $message;
21
22
/**
23
* MinConstraint constructor.
24
*
25
* @param int $min
26
* @param string $message
27
*/
28
public function __construct($min, $message = null) {
29
$this->min = $min;
30
$this->message = $message;
31
}
32
33
/**
34
* @param $value
35
* @param IValidationData $data
36
*
37
* @return bool
38
*/
39
public function check($value, IValidationData $data = null) {
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.