Skip to content

Commit 57c8974

Browse files
committed
- Removed abstract method
- Changed check to === null - Added null to doc comments for $type parameter.
1 parent f5eaf7a commit 57c8974

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/code/Magento/Vault/Api/Data/PaymentTokenFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface PaymentTokenFactoryInterface
2121

2222
/**
2323
* Create payment token entity
24-
* @param $type string
24+
* @param $type string|null
2525
* @return PaymentTokenInterface
2626
*/
2727
public function create($type = null);

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
ObjectManagerInterface $objectManager,
3737
PaymentTokenFactoryInterface $paymentTokenFactory = null
3838
) {
39-
if (!$paymentTokenFactory) {
39+
if ($paymentTokenFactory === null) {
4040
$paymentTokenFactory = $objectManager->get(PaymentTokenFactoryInterface::class);
4141
}
4242

@@ -52,9 +52,4 @@ public function create()
5252
{
5353
return $this->paymentTokenFactory->create($this->getType());
5454
}
55-
56-
/**
57-
* @return string
58-
*/
59-
abstract public function getType();
6055
}

0 commit comments

Comments
 (0)