Passed
Push — main ( 0f17ea...1f5a74 )
by Breno
01:47
created

NotEqual   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
declare(strict_types=1);
3
4
namespace BrenoRoosevelt\Validation\Rules\Comparison;
5
6
use Attribute;
7
use BrenoRoosevelt\Validation\Operator;
8
9
#[Attribute(Attribute::TARGET_PROPERTY)]
10
class NotEqual extends Compare
11
{
12
    public function __construct(
13
        mixed $value,
14
        ?string $message = null,
15
        ?int $stopOnFailure = null,
16
        ?int $priority = null
17
    ) {
18
        parent::__construct(
19
            Operator::NOT_EQUAL,
20
            $value,
21
            $message,
22
            $stopOnFailure,
23
            $priority
24
        );
25
    }
26
}
27