Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
QuoteGeneratorFactory.php
Go to the documentation of this file.
1 <?php
8 
13 {
19  private $objectManager = null;
20 
26  private $instanceName = null;
27 
32  public function __construct(
33  \Magento\Framework\ObjectManagerInterface $objectManager,
34  $instanceName = \Magento\Setup\Fixtures\Quote\QuoteGenerator::class
35  ) {
36  $this->objectManager = $objectManager;
37  $this->instanceName = $instanceName;
38  }
39 
46  public function create(array $data = [])
47  {
48  return $this->objectManager->create($this->instanceName, $data);
49  }
50 }
$objectManager
Definition: bootstrap.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Setup\Fixtures\Quote\QuoteGenerator::class)