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)
vendor
magento
module-inventory-multi-dimensional-indexer-api
Model
IndexName.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryMultiDimensionalIndexerApi\Model
;
9
10
use
Magento\Framework\Exception\LocalizedException
;
11
use
Magento\Framework\Phrase
;
12
18
class
IndexName
19
{
23
private
$indexId;
24
28
private
$dimensions;
29
33
private
$alias;
34
41
public
function
__construct
(
string
$indexId, array $dimensions,
Alias
$alias)
42
{
43
foreach
($dimensions as $dimension) {
44
if
(!$dimension instanceof
Dimension
) {
45
throw
new
LocalizedException
(
46
new
Phrase
(
'Dimension have to be instance of Dimension class.'
)
47
);
48
}
49
}
50
51
$this->indexId = $indexId;
52
$this->dimensions = $dimensions;
53
$this->alias =
$alias
;
54
}
55
59
public
function
getIndexId
(): string
60
{
61
return
$this->indexId;
62
}
63
67
public
function
getDimensions
(): array
68
{
69
return
$this->dimensions;
70
}
71
75
public
function
getAlias
():
Alias
76
{
77
return
$this->alias;
78
}
79
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\InventoryMultiDimensionalIndexerApi\Model\Dimension
Definition:
Dimension.php:17
Magento\InventoryMultiDimensionalIndexerApi\Model
Definition:
Alias.php:8
Magento\InventoryMultiDimensionalIndexerApi\Model\IndexName\getAlias
getAlias()
Definition:
IndexName.php:75
Magento\InventoryMultiDimensionalIndexerApi\Model\IndexName\getIndexId
getIndexId()
Definition:
IndexName.php:59
Magento\InventoryMultiDimensionalIndexerApi\Model\IndexName
Definition:
IndexName.php:18
Magento\InventoryMultiDimensionalIndexerApi\Model\IndexName\getDimensions
getDimensions()
Definition:
IndexName.php:67
Magento\InventoryMultiDimensionalIndexerApi\Model\IndexName\__construct
__construct(string $indexId, array $dimensions, Alias $alias)
Definition:
IndexName.php:41
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias
Definition:
Alias.php:18