protected function controlLimit(array &$product_ids)
    {
        $limit = $this->getLimit();

        if (!empty($limit)) {
            $product_ids = array_slice($product_ids, 0, $limit);
        }
    }
protected function controlLimit(array &$product_ids)
    {
        $limit = $this->getLimit();

        if (!empty($limit)) {
            $product_ids = array_slice($product_ids, 0, $limit);
        }
    }
protected function controlLimit ( array & $ product_ids ) { $ limit = $ this -> getLimit ( ) ; if ( ! empty ( $ limit ) ) { $ product_ids = array_slice ( $ product_ids , 0 , $ limit ) ; } }
Reduces a number of items to save
@param array $product_ids
Reduces a number of items to save