Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
CurrencyFactory Class Reference

Public Member Functions

 __construct (ObjectManagerInterface $objectManager, $instanceName=CurrencyInterface::class)
 
 create (array $data=[])
 

Protected Attributes

 $_objectManager = null
 
 $_instanceName = null
 

Detailed Description

Definition at line 9 of file CurrencyFactory.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ObjectManagerInterface  $objectManager,
  $instanceName = CurrencyInterface::class 
)
Parameters
ObjectManagerInterface$objectManager
string$instanceName

Definition at line 25 of file CurrencyFactory.php.

28  {
29  $this->_objectManager = $objectManager;
30  $this->_instanceName = $instanceName;
31  }
$objectManager
Definition: bootstrap.php:17

Member Function Documentation

◆ create()

create ( array  $data = [])

Create class instance with specified parameters

Parameters
array$data
Returns
CurrencyInterface

Definition at line 39 of file CurrencyFactory.php.

40  {
41  return $this->_objectManager->create($this->_instanceName, $data);
42  }

Field Documentation

◆ $_instanceName

$_instanceName = null
protected

Definition at line 19 of file CurrencyFactory.php.

◆ $_objectManager

$_objectManager = null
protected

Definition at line 14 of file CurrencyFactory.php.


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