File tree Expand file tree Collapse file tree 5 files changed +23
-22
lines changed
app/code/Magento/SalesGraphQl/Model
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 5 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2020 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
2020 */
2121class Order
2222{
23- private TimezoneInterface $ timezone ;
24-
2523 /**
2624 * @param OrderAddress $orderAddress
2725 * @param OrderPayments $orderPayments
@@ -30,7 +28,7 @@ class Order
3028 public function __construct (
3129 private readonly OrderAddress $ orderAddress ,
3230 private readonly OrderPayments $ orderPayments ,
33- TimezoneInterface $ timezone = null
31+ private ? TimezoneInterface $ timezone = null
3432 ) {
3533 $ this ->timezone = $ timezone ?: ObjectManager::getInstance ()->get (TimezoneInterface::class);
3634 }
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2020 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
2121 */
2222class CreditMemoComments implements ResolverInterface
2323{
24- private TimezoneInterface $ timezone ;
25-
24+ /**
25+ * @param TimezoneInterface|null $timezone
26+ */
2627 public function __construct (
27- TimezoneInterface $ timezone = null
28+ private ? TimezoneInterface $ timezone = null
2829 ) {
2930 $ this ->timezone = $ timezone ?: ObjectManager::getInstance ()->get (TimezoneInterface::class);
3031 }
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2020 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
2222 */
2323class Invoices implements ResolverInterface
2424{
25- private TimezoneInterface $ timezone ;
26-
25+ /**
26+ * @param TimezoneInterface|null $timezone
27+ */
2728 public function __construct (
28- TimezoneInterface $ timezone = null
29+ private ? TimezoneInterface $ timezone = null
2930 ) {
3031 $ this ->timezone = $ timezone ?: ObjectManager::getInstance ()->get (TimezoneInterface::class);
3132 }
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2020 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
2222 */
2323class Shipments implements ResolverInterface
2424{
25- private TimezoneInterface $ timezone ;
26-
25+ /**
26+ * @param TimezoneInterface|null $timezone
27+ */
2728 public function __construct (
28- TimezoneInterface $ timezone = null
29+ private ? TimezoneInterface $ timezone = null
2930 ) {
3031 $ this ->timezone = $ timezone ?: ObjectManager::getInstance ()->get (TimezoneInterface::class);
3132 }
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2020 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
You can’t perform that action at this time.
0 commit comments