protected function checkMinItems($entity, $schema, $entityName)
    {
        if (isset($schema->minItems) && $schema->minItems) {
            if (count($entity) < $schema->minItems) {
                throw new ValidationException(sprintf('Not enough array items for [%s], minimum is [%s]', $entityName, $schema->minItems));
            }
        }

        return $this;
    }
protected function checkMinItems($entity, $schema, $entityName)
    {
        if (isset($schema->minItems) && $schema->minItems) {
            if (count($entity) < $schema->minItems) {
                throw new ValidationException(sprintf('Not enough array items for [%s], minimum is [%s]', $entityName, $schema->minItems));
            }
        }

        return $this;
    }
protected function checkMinItems ( $ entity , $ schema , $ entityName ) { if ( isset ( $ schema -> minItems ) && $ schema -> minItems ) { if ( count ( $ entity ) < $ schema -> minItems ) { throw new ValidationException ( sprintf ( 'Not enough array items for [%s], minimum is [%s]' , $ entityName , $ schema -> minItems ) ) ; } } return $ this ; }
Check array minimum items

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

@return Validator
Check array minimum items