| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class IsIntegerNotEquals extends IsInteger |
||
| 16 | { |
||
| 17 | public const ERROR_NOTHING_TO_COMPARE = "Nothing to compare"; |
||
| 18 | /** @var int */ |
||
| 19 | protected $against; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param int $value |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | public function against(int $value): IsIntegerNotEquals |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param null $value |
||
|
|
|||
| 34 | * @return bool |
||
| 35 | * @throws ValidationException |
||
| 36 | */ |
||
| 37 | public function check($value = null): bool |
||
| 53 |