Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
ProviderFactory Class Reference

Public Member Functions

 __construct (ObjectManagerInterface $objectManager)
 
 create ($providerName)
 

Detailed Description

Factory for report providers

Definition at line 13 of file ProviderFactory.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ObjectManagerInterface  $objectManager)
Parameters
ObjectManagerInterface$objectManager

Definition at line 23 of file ProviderFactory.php.

25  {
26  $this->objectManager = $objectManager;
27  }

Member Function Documentation

◆ create()

create (   $providerName)
Parameters
string$providerName
Returns
object

Definition at line 33 of file ProviderFactory.php.

34  {
35  return $this->objectManager->get($providerName);
36  }

The documentation for this class was generated from the following file: