Skip to content

Commit 847c779

Browse files
author
Gurzhyi, Andrii
committed
Merge branch 'MAGETWO-42231-PR' of github.corp.magento.com:magento-mpi/magento2ce into MAGETWO-42231-PR
2 parents 0ee8920 + 55397b9 commit 847c779

File tree

7 files changed

+23
-24
lines changed

7 files changed

+23
-24
lines changed

app/code/Magento/Payment/Gateway/CommandExecuteInterface.php renamed to app/code/Magento/Payment/Gateway/CommandExecutorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
namespace Magento\Payment\Gateway;
77

88
/**
9-
* Interface CommandExecuteInterface
9+
* Interface CommandExecutorInterface
1010
*/
11-
interface CommandExecuteInterface
11+
interface CommandExecutorInterface
1212
{
1313
/**
1414
* Performs command

app/code/Magento/Payment/Model/Method/Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Framework\Event\ManagerInterface;
1313
use Magento\Framework\Exception\NotFoundException;
1414
use Magento\Framework\Exception\LocalizedException;
15-
use Magento\Payment\Gateway\CommandExecuteInterface;
15+
use Magento\Payment\Gateway\CommandExecutorInterface;
1616
use Magento\Payment\Gateway\Command\CommandPoolInterface;
1717
use Magento\Payment\Gateway\Data\PaymentDataObjectFactory;
1818
use Magento\Payment\Gateway\Config\ValueHandlerPoolInterface;
@@ -24,7 +24,7 @@
2424
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2525
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2626
*/
27-
final class Adapter implements MethodInterface, CommandExecuteInterface
27+
final class Adapter implements MethodInterface, CommandExecutorInterface
2828
{
2929
/**
3030
* @var ValueHandlerPoolInterface

app/code/Magento/Vault/Api/PaymentTokenRepositoryInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ public function getById($entityId);
3131
/**
3232
* Deletes a specified payment token.
3333
*
34-
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The invoice.
34+
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The invoice.
3535
* @return bool
3636
*/
37-
public function delete(Data\PaymentTokenInterface $entity);
37+
public function delete(Data\PaymentTokenInterface $paymentToken);
3838

3939
/**
4040
* Performs persist operations for a specified payment token.
4141
*
42-
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The payment token.
42+
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The payment token.
4343
* @return \Magento\Vault\Api\Data\PaymentTokenInterface Payment token interface.
4444
*/
45-
public function save(Data\PaymentTokenInterface $entity);
45+
public function save(Data\PaymentTokenInterface $paymentToken);
4646
}

app/code/Magento/Vault/Model/PaymentTokenNullRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getById($entityId)
6363
* @inheritdoc
6464
* @throws \LogicException
6565
*/
66-
public function delete(Data\PaymentTokenInterface $entity)
66+
public function delete(Data\PaymentTokenInterface $paymentToken)
6767
{
6868
throw new \LogicException(sprintf('You must implement this operation. (%s)', __METHOD__));
6969
}
@@ -72,7 +72,7 @@ public function delete(Data\PaymentTokenInterface $entity)
7272
* @inheritdoc
7373
* @throws \LogicException
7474
*/
75-
public function save(Data\PaymentTokenInterface $entity)
75+
public function save(Data\PaymentTokenInterface $paymentToken)
7676
{
7777
throw new \LogicException(sprintf('You must implement this operation. (%s)', __METHOD__));
7878
}

app/code/Magento/Vault/Model/PaymentTokenRepository.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ public function getById($entityId)
114114
/**
115115
* Deletes a specified payment token.
116116
*
117-
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The invoice.
117+
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $paymentToken The invoice.
118118
* @return bool
119119
*/
120-
public function delete(Data\PaymentTokenInterface $entity)
120+
public function delete(Data\PaymentTokenInterface $paymentToken)
121121
{
122122
/** @var PaymentToken $tokenModel */
123-
$tokenModel = $this->getById($entity->getEntityId());
123+
$tokenModel = $this->getById($paymentToken->getEntityId());
124124
if (empty($tokenModel->getPublicHash())) {
125125
return false;
126126
}
@@ -137,11 +137,11 @@ public function delete(Data\PaymentTokenInterface $entity)
137137
* @param \Magento\Vault\Api\Data\PaymentTokenInterface $entity The payment token.
138138
* @return \Magento\Vault\Api\Data\PaymentTokenInterface Saved payment token data.
139139
*/
140-
public function save(Data\PaymentTokenInterface $entity)
140+
public function save(Data\PaymentTokenInterface $paymentToken)
141141
{
142-
/** @var PaymentToken $entity */
143-
$this->resourceModel->save($entity);
144-
return $entity;
142+
/** @var PaymentToken $paymentToken */
143+
$this->resourceModel->save($paymentToken);
144+
return $paymentToken;
145145
}
146146

147147
/**

app/code/Magento/Vault/Model/PaymentTokenRepositoryProxy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria)
108108
/**
109109
* @inheritdoc
110110
*/
111-
public function delete(PaymentTokenInterface $entity)
111+
public function delete(PaymentTokenInterface $paymentToken)
112112
{
113-
return $this->getRepository()->delete($entity);
113+
return $this->getRepository()->delete($paymentToken);
114114
}
115115

116116
/**
117117
* @inheritdoc
118118
*/
119-
public function save(PaymentTokenInterface $entity)
119+
public function save(PaymentTokenInterface $paymentToken)
120120
{
121-
return $this->getRepository()->save($entity);
121+
return $this->getRepository()->save($paymentToken);
122122
}
123123

124124
/**

app/code/Magento/Vault/Model/VaultPaymentInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
namespace Magento\Vault\Model;
77

88
use Magento\Payment\Model\MethodInterface;
9-
use Magento\Vault\Api\Data\PaymentTokenInterface;
10-
use Magento\Payment\Gateway\CommandExecuteInterface;
9+
use Magento\Payment\Gateway\CommandExecutorInterface;
1110

1211
/**
1312
* Interface VaultPaymentInterface
1413
*/
15-
interface VaultPaymentInterface extends MethodInterface, CommandExecuteInterface
14+
interface VaultPaymentInterface extends MethodInterface, CommandExecutorInterface
1615
{
1716
const VAULT_TOKEN_COMMAND = 'vault_token';
1817

0 commit comments

Comments
 (0)