Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TotalFactory.php
Go to the documentation of this file.
1 <?php
11 
13 {
19  protected $_objectManager = null;
20 
27  {
28  $this->_objectManager = $objManager;
29  }
30 
38  public function create($instanceName = Total::class, array $data = [])
39  {
40  return $this->_objectManager->create($instanceName, $data);
41  }
42 }
__construct(\Magento\Framework\ObjectManagerInterface $objManager)
$objManager
create($instanceName=Total::class, array $data=[])