Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SelectGeneratorFactory.php
Go to the documentation of this file.
1 <?php
8 
10 
15 {
19  private $instanceName;
20 
24  private $objectManager;
25 
31  public function __construct(
32  ObjectManagerInterface $objectManager,
33  $instanceName = SelectGenerator::class
34  ) {
35  $this->objectManager = $objectManager;
36  $this->instanceName = $instanceName;
37  }
38 
44  public function create()
45  {
46  return $this->objectManager->create($this->instanceName);
47  }
48 }
$objectManager
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager, $instanceName=SelectGenerator::class)