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