Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
TypeList Class Reference
Inheritance diagram for TypeList:
ArrayInterface OptionSourceInterface

Public Member Functions

 __construct (\Magento\Payment\Helper\Data $paymentData)
 
 toOptionArray ()
 

Protected Attributes

 $paymentData
 

Detailed Description

Sales transaction payment method types option array

Definition at line 11 of file TypeList.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Payment\Helper\Data  $paymentData)
Parameters
\Magento\Payment\Helper\Data$paymentData

Definition at line 23 of file TypeList.php.

24  {
25  $this->paymentData = $paymentData;
26  }

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )

Return option array

Returns
array

Implements OptionSourceInterface.

Definition at line 33 of file TypeList.php.

34  {
35  return $this->paymentData->getPaymentMethodList();
36  }

Field Documentation

◆ $paymentData

$paymentData
protected

Definition at line 18 of file TypeList.php.


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