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-sales
Model
ResourceModel
Metadata.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Model\ResourceModel
;
7
11
class
Metadata
12
{
16
protected
$objectManager
;
17
21
protected
$resourceClassName
;
22
26
protected
$modelClassName
;
27
33
public
function
__construct
(
34
\
Magento
\Framework\
ObjectManagerInterface
$objectManager
,
35
$resourceClassName
,
36
$modelClassName
37
) {
38
$this->objectManager =
$objectManager
;
39
$this->resourceClassName =
$resourceClassName
;
40
$this->modelClassName =
$modelClassName
;
41
}
42
46
public
function
getMapper
()
47
{
48
return
$this->objectManager->get($this->resourceClassName);
49
}
50
54
public
function
getNewInstance
()
55
{
56
return
$this->objectManager->create($this->modelClassName);
57
}
58
}
Magento\Sales\Model\ResourceModel\Metadata\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $resourceClassName, $modelClassName)
Definition:
Metadata.php:33
Magento\Sales\Model\ResourceModel\Metadata
Definition:
Metadata.php:11
Magento\Sales\Model\ResourceModel\Metadata\$objectManager
$objectManager
Definition:
Metadata.php:16
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Sales\Model\ResourceModel\Metadata\$modelClassName
$modelClassName
Definition:
Metadata.php:26
Magento\Sales\Model\ResourceModel\Metadata\getMapper
getMapper()
Definition:
Metadata.php:46
Magento\Sales\Model\ResourceModel
Magento
Magento\Sales\Model\ResourceModel\Metadata\$resourceClassName
$resourceClassName
Definition:
Metadata.php:21
Magento\Sales\Model\ResourceModel\Metadata\getNewInstance
getNewInstance()
Definition:
Metadata.php:54