| @@ 30-39 (lines=10) @@ | ||
| 27 | /** |
|
| 28 | * {@inheritdoc} |
|
| 29 | */ |
|
| 30 | public function validate($value, $parameter, Validator $validator) |
|
| 31 | { |
|
| 32 | Assert::type($parameter, 'number', self::KEYWORD, $validator->getSchemaPath()); |
|
| 33 | ||
| 34 | if (isset($validator->getSchema()->exclusiveMaximum) && $validator->getSchema()->exclusiveMaximum === true) { |
|
| 35 | return self::validateExclusiveMax($value, $parameter, $validator->getDataPath()); |
|
| 36 | } |
|
| 37 | ||
| 38 | return self::validateMax($value, $parameter, $validator->getDataPath()); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param mixed $value |
|
| @@ 30-39 (lines=10) @@ | ||
| 27 | /** |
|
| 28 | * {@inheritdoc} |
|
| 29 | */ |
|
| 30 | public function validate($value, $parameter, Validator $validator) |
|
| 31 | { |
|
| 32 | Assert::type($parameter, 'number', self::KEYWORD, $validator->getSchemaPath()); |
|
| 33 | ||
| 34 | if (isset($validator->getSchema()->exclusiveMinimum) && $validator->getSchema()->exclusiveMinimum === true) { |
|
| 35 | return self::validateExclusiveMin($value, $parameter, $validator->getDataPath()); |
|
| 36 | } |
|
| 37 | ||
| 38 | return self::validateMin($value, $parameter, $validator->getDataPath()); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @param mixed $value |
|