Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-catalog
Model
ResourceModel
Product
Indexer
Price
CompositeProductBatchSizeAdjuster.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price
;
8
12
class
CompositeProductBatchSizeAdjuster
implements
CompositeProductBatchSizeAdjusterInterface
13
{
17
private
$compositeProductRelationsCalculator;
18
22
public
function
__construct
(
CompositeProductRelationsCalculator
$compositeProductRelationsCalculator)
23
{
24
$this->compositeProductRelationsCalculator = $compositeProductRelationsCalculator;
25
}
26
30
public
function
adjust
($batchSize)
31
{
32
$maxRelationsCount = $this->compositeProductRelationsCalculator->getMaxRelationsCount();
33
return
$maxRelationsCount > 0 ? ceil($batchSize / $maxRelationsCount) : $batchSize;
34
}
35
}
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CompositeProductRelationsCalculator
Definition:
CompositeProductRelationsCalculator.php:12
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CompositeProductBatchSizeAdjuster
Definition:
CompositeProductBatchSizeAdjuster.php:12
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CompositeProductBatchSizeAdjuster\__construct
__construct(CompositeProductRelationsCalculator $compositeProductRelationsCalculator)
Definition:
CompositeProductBatchSizeAdjuster.php:22
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CompositeProductBatchSizeAdjusterInterface
Definition:
CompositeProductBatchSizeAdjusterInterface.php:14
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price
Definition:
BasePriceModifier.php:8
Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\CompositeProductBatchSizeAdjuster\adjust
adjust($batchSize)
Definition:
CompositeProductBatchSizeAdjuster.php:30