Skip to content

Commit cb1151f

Browse files
committed
Merge remote-tracking branch '36996/feature/php8.1-constructor-property-promotion-vault-graph-ql' into commpr-10131-001
2 parents 147e077 + 4f03482 commit cb1151f

File tree

3 files changed

+14
-28
lines changed

3 files changed

+14
-28
lines changed

app/code/Magento/VaultGraphQl/Model/Resolver/DeletePaymentToken.php

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -21,26 +21,14 @@
2121
*/
2222
class DeletePaymentToken implements ResolverInterface
2323
{
24-
/**
25-
* @var PaymentTokenManagementInterface
26-
*/
27-
private $paymentTokenManagement;
28-
29-
/**
30-
* @var PaymentTokenRepositoryInterface
31-
*/
32-
private $paymentTokenRepository;
33-
3424
/**
3525
* @param PaymentTokenManagementInterface $paymentTokenManagement
3626
* @param PaymentTokenRepositoryInterface $paymentTokenRepository
3727
*/
3828
public function __construct(
39-
PaymentTokenManagementInterface $paymentTokenManagement,
40-
PaymentTokenRepositoryInterface $paymentTokenRepository
29+
private readonly PaymentTokenManagementInterface $paymentTokenManagement,
30+
private readonly PaymentTokenRepositoryInterface $paymentTokenRepository
4131
) {
42-
$this->paymentTokenManagement = $paymentTokenManagement;
43-
$this->paymentTokenRepository = $paymentTokenRepository;
4432
}
4533

4634
/**

app/code/Magento/VaultGraphQl/Model/Resolver/PaymentTokens.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -19,18 +19,12 @@
1919
*/
2020
class PaymentTokens implements ResolverInterface
2121
{
22-
/**
23-
* @var PaymentTokenManagement
24-
*/
25-
private $paymentTokenManagement;
26-
2722
/**
2823
* @param PaymentTokenManagement $paymentTokenManagement
2924
*/
3025
public function __construct(
31-
PaymentTokenManagement $paymentTokenManagement
26+
private readonly PaymentTokenManagement $paymentTokenManagement
3227
) {
33-
$this->paymentTokenManagement = $paymentTokenManagement;
3428
}
3529

3630
/**
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

88
use Magento\Framework\Component\ComponentRegistrar;
99

10-
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_VaultGraphQl', __DIR__);
10+
ComponentRegistrar::register(
11+
ComponentRegistrar::MODULE,
12+
'Magento_VaultGraphQl',
13+
__DIR__
14+
);

0 commit comments

Comments
 (0)