Skip to content

Commit 850db28

Browse files
committed
Refactor: Add method hints to Tracking Status
1 parent d875854 commit 850db28

File tree

1 file changed

+9
-5
lines changed
  • app/code/Magento/Shipping/Model/Tracking/Result

1 file changed

+9
-5
lines changed

app/code/Magento/Shipping/Model/Tracking/Result/Status.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
<?php
2+
declare(strict_types=1);
3+
24
/**
35
* Copyright © Magento, Inc. All rights reserved.
46
* See COPYING.txt for license details.
57
*/
8+
69
namespace Magento\Shipping\Model\Tracking\Result;
710

811
/**
9-
* Fields:
10-
* - carrier: carrier code
11-
* - carrierTitle: carrier title
12+
* @method string getCarrier()
13+
* @method Status setCarrier(string $carrierCode)
14+
* @method string getCarrierTitle()
15+
* @method Status setCarrierTitle(string $carrierTitle)
1216
*/
13-
class Status extends \Magento\Shipping\Model\Tracking\Result\AbstractResult
17+
class Status extends AbstractResult
1418
{
1519
/**
1620
* @return array
1721
*/
18-
public function getAllData()
22+
public function getAllData(): array
1923
{
2024
return $this->_data;
2125
}

0 commit comments

Comments
 (0)