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
Alias.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
Alias
19
{
23
const
ALIAS_REPLICA
=
'replica'
;
24
28
const
ALIAS_MAIN
=
'main'
;
29
35
private
$value;
36
41
public
function
__construct
(
string
$value)
42
{
43
if
(
$value
!== self::ALIAS_REPLICA &&
$value
!== self::ALIAS_MAIN) {
44
throw
new
LocalizedException
(
new
Phrase
(
'Wrong value %value for alias'
, [
'value'
=>
$value
]));
45
}
46
$this->
value
= $value;
47
}
48
52
public
function
getValue
(): string
53
{
54
return
$this->value;
55
}
56
}
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias\getValue
getValue()
Definition:
Alias.php:52
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Magento\InventoryMultiDimensionalIndexerApi\Model
Definition:
Alias.php:8
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias\__construct
__construct(string $value)
Definition:
Alias.php:41
$value
$value
Definition:
gender.phtml:16
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias\ALIAS_REPLICA
const ALIAS_REPLICA
Definition:
Alias.php:23
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias\ALIAS_MAIN
const ALIAS_MAIN
Definition:
Alias.php:28
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\InventoryMultiDimensionalIndexerApi\Model\Alias
Definition:
Alias.php:18