File tree Expand file tree Collapse file tree 7 files changed +23
-24
lines changed Expand file tree Collapse file tree 7 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Payment \Gateway ;
7
7
8
8
/**
9
- * Interface CommandExecuteInterface
9
+ * Interface CommandExecutorInterface
10
10
*/
11
- interface CommandExecuteInterface
11
+ interface CommandExecutorInterface
12
12
{
13
13
/**
14
14
* Performs command
Original file line number Diff line number Diff line change 12
12
use Magento \Framework \Event \ManagerInterface ;
13
13
use Magento \Framework \Exception \NotFoundException ;
14
14
use Magento \Framework \Exception \LocalizedException ;
15
- use Magento \Payment \Gateway \CommandExecuteInterface ;
15
+ use Magento \Payment \Gateway \CommandExecutorInterface ;
16
16
use Magento \Payment \Gateway \Command \CommandPoolInterface ;
17
17
use Magento \Payment \Gateway \Data \PaymentDataObjectFactory ;
18
18
use Magento \Payment \Gateway \Config \ValueHandlerPoolInterface ;
24
24
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
25
25
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26
26
*/
27
- final class Adapter implements MethodInterface, CommandExecuteInterface
27
+ final class Adapter implements MethodInterface, CommandExecutorInterface
28
28
{
29
29
/**
30
30
* @var ValueHandlerPoolInterface
Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ public function getById($entityId);
31
31
/**
32
32
* Deletes a specified payment token.
33
33
*
34
- * @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The invoice.
34
+ * @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The invoice.
35
35
* @return bool
36
36
*/
37
- public function delete (Data \PaymentTokenInterface $ entity );
37
+ public function delete (Data \PaymentTokenInterface $ paymentToken );
38
38
39
39
/**
40
40
* Performs persist operations for a specified payment token.
41
41
*
42
- * @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The payment token.
42
+ * @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The payment token.
43
43
* @return \Magento\Vault\Api\Data\PaymentTokenInterface Payment token interface.
44
44
*/
45
- public function save (Data \PaymentTokenInterface $ entity );
45
+ public function save (Data \PaymentTokenInterface $ paymentToken );
46
46
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function getById($entityId)
63
63
* @inheritdoc
64
64
* @throws \LogicException
65
65
*/
66
- public function delete (Data \PaymentTokenInterface $ entity )
66
+ public function delete (Data \PaymentTokenInterface $ paymentToken )
67
67
{
68
68
throw new \LogicException (sprintf ('You must implement this operation. (%s) ' , __METHOD__ ));
69
69
}
@@ -72,7 +72,7 @@ public function delete(Data\PaymentTokenInterface $entity)
72
72
* @inheritdoc
73
73
* @throws \LogicException
74
74
*/
75
- public function save (Data \PaymentTokenInterface $ entity )
75
+ public function save (Data \PaymentTokenInterface $ paymentToken )
76
76
{
77
77
throw new \LogicException (sprintf ('You must implement this operation. (%s) ' , __METHOD__ ));
78
78
}
Original file line number Diff line number Diff line change @@ -114,13 +114,13 @@ public function getById($entityId)
114
114
/**
115
115
* Deletes a specified payment token.
116
116
*
117
- * @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The invoice.
117
+ * @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The invoice.
118
118
* @return bool
119
119
*/
120
- public function delete (Data \PaymentTokenInterface $ entity )
120
+ public function delete (Data \PaymentTokenInterface $ paymentToken )
121
121
{
122
122
/** @var PaymentToken $tokenModel */
123
- $ tokenModel = $ this ->getById ($ entity ->getEntityId ());
123
+ $ tokenModel = $ this ->getById ($ paymentToken ->getEntityId ());
124
124
if (empty ($ tokenModel ->getPublicHash ())) {
125
125
return false ;
126
126
}
@@ -137,11 +137,11 @@ public function delete(Data\PaymentTokenInterface $entity)
137
137
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The payment token.
138
138
* @return \Magento\Vault\Api\Data\PaymentTokenInterface Saved payment token data.
139
139
*/
140
- public function save (Data \PaymentTokenInterface $ entity )
140
+ public function save (Data \PaymentTokenInterface $ paymentToken )
141
141
{
142
- /** @var PaymentToken $entity */
143
- $ this ->resourceModel ->save ($ entity );
144
- return $ entity ;
142
+ /** @var PaymentToken $paymentToken */
143
+ $ this ->resourceModel ->save ($ paymentToken );
144
+ return $ paymentToken ;
145
145
}
146
146
147
147
/**
Original file line number Diff line number Diff line change @@ -108,17 +108,17 @@ public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria)
108
108
/**
109
109
* @inheritdoc
110
110
*/
111
- public function delete (PaymentTokenInterface $ entity )
111
+ public function delete (PaymentTokenInterface $ paymentToken )
112
112
{
113
- return $ this ->getRepository ()->delete ($ entity );
113
+ return $ this ->getRepository ()->delete ($ paymentToken );
114
114
}
115
115
116
116
/**
117
117
* @inheritdoc
118
118
*/
119
- public function save (PaymentTokenInterface $ entity )
119
+ public function save (PaymentTokenInterface $ paymentToken )
120
120
{
121
- return $ this ->getRepository ()->save ($ entity );
121
+ return $ this ->getRepository ()->save ($ paymentToken );
122
122
}
123
123
124
124
/**
Original file line number Diff line number Diff line change 6
6
namespace Magento \Vault \Model ;
7
7
8
8
use Magento \Payment \Model \MethodInterface ;
9
- use Magento \Vault \Api \Data \PaymentTokenInterface ;
10
- use Magento \Payment \Gateway \CommandExecuteInterface ;
9
+ use Magento \Payment \Gateway \CommandExecutorInterface ;
11
10
12
11
/**
13
12
* Interface VaultPaymentInterface
14
13
*/
15
- interface VaultPaymentInterface extends MethodInterface, CommandExecuteInterface
14
+ interface VaultPaymentInterface extends MethodInterface, CommandExecutorInterface
16
15
{
17
16
const VAULT_TOKEN_COMMAND = 'vault_token ' ;
18
17
You can’t perform that action at this time.
0 commit comments