Skip to content

Commit a7b06c0

Browse files
ENGCOM-6432: Refactor: Add method hints to Tracking Status #25954
2 parents 48d0c58 + a05bc29 commit a7b06c0

File tree

1 file changed

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

1 file changed

+13
-5
lines changed

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
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+
* Tracking Status DataObject
13+
*
14+
* @method string|null getCarrier()
15+
* @method Status setCarrier(string $carrierCode)
16+
* @method string|null getCarrierTitle()
17+
* @method Status setCarrierTitle(string $carrierTitle)
1218
*/
13-
class Status extends \Magento\Shipping\Model\Tracking\Result\AbstractResult
19+
class Status extends AbstractResult
1420
{
1521
/**
22+
* Returns all Status data
23+
*
1624
* @return array
1725
*/
18-
public function getAllData()
26+
public function getAllData(): array
1927
{
2028
return $this->_data;
2129
}

0 commit comments

Comments
 (0)