Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-braintree
Helper
CcType.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Helper
;
7
8
use
Magento\Braintree\Model\Adminhtml\Source\CcType
as CcTypeSource;
9
13
class
CcType
14
{
20
private
$ccTypes = [];
21
25
private
$ccTypeSource;
26
30
public
function
__construct
(CcTypeSource $ccTypeSource)
31
{
32
$this->ccTypeSource = $ccTypeSource;
33
}
34
40
public
function
getCcTypes
()
41
{
42
if
(!$this->ccTypes) {
43
$this->ccTypes = $this->ccTypeSource->toOptionArray();
44
}
45
return
$this->ccTypes;
46
}
47
}
Magento\Braintree\Model\Adminhtml\Source\CcType
Definition:
CcType.php:12
Magento\Braintree\Helper\CcType\getCcTypes
getCcTypes()
Definition:
CcType.php:40
Magento\Braintree\Helper\CcType\__construct
__construct(CcTypeSource $ccTypeSource)
Definition:
CcType.php:30
Magento\Braintree\Helper\CcType
Definition:
CcType.php:13
Magento\Braintree\Helper
Definition:
CcType.php:6