Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
PaymentMethod Class Reference
Inheritance diagram for PaymentMethod:
PaymentMethodInterface

Public Member Functions

 __construct ($code, $title, $storeId, $isActive)
 
 getCode ()
 
 getTitle ()
 
 getStoreId ()
 
 getIsActive ()
 

Detailed Description

Payment method class.

Definition at line 11 of file PaymentMethod.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $code,
  $title,
  $storeId,
  $isActive 
)
Parameters
string$code
string$title
int$storeId
bool$isActive

Definition at line 39 of file PaymentMethod.php.

40  {
41  $this->code = $code;
42  $this->title = $title;
43  $this->storeId = $storeId;
44  $this->isActive = $isActive;
45  }
$title
Definition: default.phtml:14
$code
Definition: info.phtml:12

Member Function Documentation

◆ getCode()

getCode ( )

{Get code.

Returns
string
Since
100.1.3
}

Implements PaymentMethodInterface.

Definition at line 50 of file PaymentMethod.php.

51  {
52  return $this->code;
53  }
$code
Definition: info.phtml:12

◆ getIsActive()

getIsActive ( )

{Get is active.

Returns
bool @SuppressWarnings(PHPMD.BooleanGetMethodName)
Since
100.1.3
}

Implements PaymentMethodInterface.

Definition at line 74 of file PaymentMethod.php.

75  {
76  return $this->isActive;
77  }

◆ getStoreId()

getStoreId ( )

{Get store id.

Returns
int
Since
100.1.3
}

Implements PaymentMethodInterface.

Definition at line 66 of file PaymentMethod.php.

67  {
68  return $this->storeId;
69  }

◆ getTitle()

getTitle ( )

{Get title.

Returns
string
Since
100.1.3
}

Implements PaymentMethodInterface.

Definition at line 58 of file PaymentMethod.php.

59  {
60  return $this->title;
61  }
$title
Definition: default.phtml:14

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