Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
11 | class NotExactly extends Compare |
||
12 | { |
||
13 | const MESSAGE = 'Value should not be identical to `%s`'; |
||
14 | |||
15 | public function __construct( |
||
16 | mixed $value, |
||
17 | ?string $message = null, |
||
18 | ?int $stopOnFailure = null, |
||
19 | ?int $priority = null |
||
20 | ) { |
||
21 | parent::__construct( |
||
22 | Operator::NOT_EXACTLY, |
||
23 | $value, |
||
24 | $message, |
||
25 | $stopOnFailure, |
||
26 | $priority |
||
27 | ); |
||
28 | } |
||
29 | |||
30 | public function translatedMessage(): ?string |
||
33 | } |
||
34 | } |
||
35 |