66namespace Magento \Payment \Model ;
77
88use Magento \Payment \Api \Data \PaymentMethodInterface ;
9+ use Magento \Payment \Api \Data \PaymentMethodInterfaceFactory ;
10+ use Magento \Payment \Api \PaymentMethodListInterface ;
11+ use Magento \Payment \Helper \Data ;
912use UnexpectedValueException ;
1013
11- /**
12- * Payment method list class.
13- */
14- class PaymentMethodList implements \Magento \Payment \Api \PaymentMethodListInterface
14+ class PaymentMethodList implements PaymentMethodListInterface
1515{
1616 /**
17- * @var \Magento\Payment\Api\Data\ PaymentMethodInterfaceFactory
17+ * @var PaymentMethodInterfaceFactory
1818 */
1919 private $ methodFactory ;
2020
2121 /**
22- * @var \Magento\Payment\Helper\ Data
22+ * @var Data
2323 */
2424 private $ helper ;
2525
2626 /**
27- * @param \Magento\Payment\Api\Data\ PaymentMethodInterfaceFactory $methodFactory
28- * @param \Magento\Payment\Helper\ Data $helper
27+ * @param PaymentMethodInterfaceFactory $methodFactory
28+ * @param Data $helper
2929 */
3030 public function __construct (
31- \ Magento \ Payment \ Api \ Data \ PaymentMethodInterfaceFactory $ methodFactory ,
32- \ Magento \ Payment \ Helper \ Data $ helper
31+ PaymentMethodInterfaceFactory $ methodFactory ,
32+ Data $ helper
3333 ) {
3434 $ this ->methodFactory = $ methodFactory ;
3535 $ this ->helper = $ helper ;
3636 }
3737
3838 /**
39- * {@inheritdoc}
39+ * @inheritDoc
4040 */
4141 public function getList ($ storeId )
4242 {
@@ -56,7 +56,7 @@ function ($code) {
5656 return $ method && !($ method instanceof \Magento \Payment \Model \Method \Substitution);
5757 });
5858
59- @ uasort (
59+ uasort (
6060 $ methodsInstances ,
6161 function (MethodInterface $ a , MethodInterface $ b ) use ($ storeId ) {
6262 return (int )$ a ->getConfigData ('sort_order ' , $ storeId ) - (int )$ b ->getConfigData ('sort_order ' , $ storeId );
@@ -80,7 +80,7 @@ function (MethodInterface $methodInstance) use ($storeId) {
8080 }
8181
8282 /**
83- * {@inheritdoc}
83+ * @inheritDoc
8484 */
8585 public function getActiveList ($ storeId )
8686 {
0 commit comments