| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-shipping/Block/Adminhtml/View/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-shipping/Block/Adminhtml/View/Items.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Shipping\Block\Adminhtml\View;
/**
* Adminhtml sales item renderer
*
* @api
* @since 100.0.2
*/
class Items extends \Magento\Sales\Block\Adminhtml\Items\AbstractItems
{
/**
* Retrieve shipment model instance
*
* @return \Magento\Sales\Model\Order\Shipment
*/
public function getShipment()
{
return $this->_coreRegistry->registry('current_shipment');
}
/**
* Retrieve invoice order
*
* @return \Magento\Sales\Model\Order
*/
public function getOrder()
{
return $this->getShipment()->getOrder();
}
/**
* Retrieve source
*
* @return \Magento\Sales\Model\Order\Shipment
*/
public function getSource()
{
return $this->getShipment();
}
}