protected function getLimit(array $queryParts)
    {
        if (isset($queryParts['limit']) && !empty($queryParts['limit'])) {
            $limit = [];
            foreach ($queryParts['limit'] as $int) {
                $limit[] = (int)$int;
            }

            return 'LIMIT ' . implode(', ', $limit);
        }

        return null;
    }
protected function getLimit(array $queryParts)
    {
        if (isset($queryParts['limit']) && !empty($queryParts['limit'])) {
            $limit = [];
            foreach ($queryParts['limit'] as $int) {
                $limit[] = (int)$int;
            }

            return 'LIMIT ' . implode(', ', $limit);
        }

        return null;
    }
protected function getLimit ( array $ queryParts ) { if ( isset ( $ queryParts [ 'limit' ] ) && ! empty ( $ queryParts [ 'limit' ] ) ) { $ limit = [ ] ; foreach ( $ queryParts [ 'limit' ] as $ int ) { $ limit [ ] = ( int ) $ int ; } return 'LIMIT ' . implode ( ', ' , $ limit ) ; } return null ; }
Prepare the limit for use in the MySQL query.
@param  array $queryParts
@return null|string
Prepare the limit for use in the MySQL query .