Definition at line 8 of file IpnFactory.php.
◆ __construct()
Factory constructor
- Parameters
-
\Magento\Framework\ObjectManagerInterface | $objectManager | |
array | $mapping | |
Definition at line 28 of file IpnFactory.php.
◆ create()
create |
( |
array |
$data = [] | ) |
|
Create class instance with specified parameters
- Parameters
-
- Returns
- \Magento\Paypal\Model\IpnInterface
Definition at line 40 of file IpnFactory.php.
42 $type = isset(
$data[
'data'][
'txn_type']) ?
$data[
'data'][
'txn_type'] :
'';
43 $instanceType = isset($this->mapping[
$type]) ? $this->mapping[
$type] : \Magento\Paypal\Model\Ipn::class;
44 return $this->_objectManager->create($instanceType,
$data);
◆ $_objectManager
◆ $mapping
The documentation for this class was generated from the following file: