protected function checkExclusiveMaximum($entity, $schema, $entityName)
    {
        if (isset($schema->maximum) && isset($schema->exclusiveMaximum) && $schema->exclusiveMaximum) {
            if ($entity == $schema->maximum) {
                throw new ValidationException(sprintf('Invalid value for [%s], must be less than [%s]', $entityName, $schema->maximum));
            }
        }

        return $this;
    }
protected function checkExclusiveMaximum($entity, $schema, $entityName)
    {
        if (isset($schema->maximum) && isset($schema->exclusiveMaximum) && $schema->exclusiveMaximum) {
            if ($entity == $schema->maximum) {
                throw new ValidationException(sprintf('Invalid value for [%s], must be less than [%s]', $entityName, $schema->maximum));
            }
        }

        return $this;
    }
protected function checkExclusiveMaximum ( $ entity , $ schema , $ entityName ) { if ( isset ( $ schema -> maximum ) && isset ( $ schema -> exclusiveMaximum ) && $ schema -> exclusiveMaximum ) { if ( $ entity == $ schema -> maximum ) { throw new ValidationException ( sprintf ( 'Invalid value for [%s], must be less than [%s]' , $ entityName , $ schema -> maximum ) ) ; } } return $ this ; }
Check exclusive maximum requirement

@param int|float $entity
@param object $schema
@param string $entityName

@return Validator
Check exclusive maximum requirement