protected function checkMinLength($entity, $schema, $entityName)
    {
        if (isset($schema->minLength) && $schema->minLength) {
            if (strlen($entity) < $schema->minLength) {
                throw new ValidationException(sprintf('String too short for [%s], minimum length is [%s]', $entityName, $schema->minLength));
            }
        }

        return $this;
    }
protected function checkMinLength($entity, $schema, $entityName)
    {
        if (isset($schema->minLength) && $schema->minLength) {
            if (strlen($entity) < $schema->minLength) {
                throw new ValidationException(sprintf('String too short for [%s], minimum length is [%s]', $entityName, $schema->minLength));
            }
        }

        return $this;
    }
protected function checkMinLength ( $ entity , $ schema , $ entityName ) { if ( isset ( $ schema -> minLength ) && $ schema -> minLength ) { if ( strlen ( $ entity ) < $ schema -> minLength ) { throw new ValidationException ( sprintf ( 'String too short for [%s], minimum length is [%s]' , $ entityName , $ schema -> minLength ) ) ; } } return $ this ; }
Check string minimum length

@param string $entity
@param object $schema
@param string $entityName

@return Validator
Check string minimum length