| 1 | <?php |
||
| 5 | class NotSame extends AbstractCompareValidator |
||
| 6 | { |
||
| 7 | const E_SAME = 'same'; |
||
| 8 | |||
| 9 | protected $messages = [ |
||
| 10 | self::E_SAME => 'The given value is same with compared value.' |
||
| 11 | ]; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Set compared value |
||
| 15 | * |
||
| 16 | * @param $value |
||
| 17 | * |
||
| 18 | * @return $this |
||
| 19 | */ |
||
| 20 | 4 | public function notSameAs($value) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritdoc |
||
| 29 | */ |
||
| 30 | 3 | protected function compare() |
|
| 40 | } |
||
| 41 |