6
6
namespace Magento \Payment \Model ;
7
7
8
8
use Magento \Payment \Api \Data \PaymentMethodInterface ;
9
+ use Magento \Payment \Api \Data \PaymentMethodInterfaceFactory ;
10
+ use Magento \Payment \Api \PaymentMethodListInterface ;
11
+ use Magento \Payment \Helper \Data ;
9
12
use UnexpectedValueException ;
10
13
11
- /**
12
- * Payment method list class.
13
- */
14
- class PaymentMethodList implements \Magento \Payment \Api \PaymentMethodListInterface
14
+ class PaymentMethodList implements PaymentMethodListInterface
15
15
{
16
16
/**
17
- * @var \Magento\Payment\Api\Data\ PaymentMethodInterfaceFactory
17
+ * @var PaymentMethodInterfaceFactory
18
18
*/
19
19
private $ methodFactory ;
20
20
21
21
/**
22
- * @var \Magento\Payment\Helper\ Data
22
+ * @var Data
23
23
*/
24
24
private $ helper ;
25
25
26
26
/**
27
- * @param \Magento\Payment\Api\Data\ PaymentMethodInterfaceFactory $methodFactory
28
- * @param \Magento\Payment\Helper\ Data $helper
27
+ * @param PaymentMethodInterfaceFactory $methodFactory
28
+ * @param Data $helper
29
29
*/
30
30
public function __construct (
31
- \ Magento \ Payment \ Api \ Data \ PaymentMethodInterfaceFactory $ methodFactory ,
32
- \ Magento \ Payment \ Helper \ Data $ helper
31
+ PaymentMethodInterfaceFactory $ methodFactory ,
32
+ Data $ helper
33
33
) {
34
34
$ this ->methodFactory = $ methodFactory ;
35
35
$ this ->helper = $ helper ;
36
36
}
37
37
38
38
/**
39
- * {@inheritdoc}
39
+ * @inheritDoc
40
40
*/
41
41
public function getList ($ storeId )
42
42
{
@@ -56,7 +56,7 @@ function ($code) {
56
56
return $ method && !($ method instanceof \Magento \Payment \Model \Method \Substitution);
57
57
});
58
58
59
- @ uasort (
59
+ uasort (
60
60
$ methodsInstances ,
61
61
function (MethodInterface $ a , MethodInterface $ b ) use ($ storeId ) {
62
62
return (int )$ a ->getConfigData ('sort_order ' , $ storeId ) - (int )$ b ->getConfigData ('sort_order ' , $ storeId );
@@ -80,7 +80,7 @@ function (MethodInterface $methodInstance) use ($storeId) {
80
80
}
81
81
82
82
/**
83
- * {@inheritdoc}
83
+ * @inheritDoc
84
84
*/
85
85
public function getActiveList ($ storeId )
86
86
{
0 commit comments