Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
JoinDataInterfaceFactory.php
Go to the documentation of this file.
1 <?php
8 
14 {
20  protected $_objectManager = null;
21 
27  protected $_instanceName = null;
28 
35  public function __construct(
37  $instanceName = \Magento\Framework\Api\ExtensionAttribute\JoinDataInterface::class
38  ) {
39  $this->_objectManager = $objectManager;
40  $this->_instanceName = $instanceName;
41  }
42 
49  public function create(array $data = [])
50  {
51  return $this->_objectManager->create($this->_instanceName, $data);
52  }
53 }
$objectManager
Definition: bootstrap.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Api\ExtensionAttribute\JoinDataInterface::class)