protected function checkMaximum($entity, $schema, $entityName)
    {
        if (isset($schema->maximum)) {
            if ($entity > $schema->maximum) {
                throw new ValidationException(sprintf('Invalid value for [%s], maximum is [%s]', $entityName, $schema->maximum));
            }
        }

        return $this;
    }
protected function checkMaximum($entity, $schema, $entityName)
    {
        if (isset($schema->maximum)) {
            if ($entity > $schema->maximum) {
                throw new ValidationException(sprintf('Invalid value for [%s], maximum is [%s]', $entityName, $schema->maximum));
            }
        }

        return $this;
    }
protected function checkMaximum ( $ entity , $ schema , $ entityName ) { if ( isset ( $ schema -> maximum ) ) { if ( $ entity > $ schema -> maximum ) { throw new ValidationException ( sprintf ( 'Invalid value for [%s], maximum is [%s]' , $ entityName , $ schema -> maximum ) ) ; } } return $ this ; }
Check maximum value

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

@return Validator
Check maximum value