| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-ups/Model/Config/Source/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-ups/Model/Config/Source/OriginShipment.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Ups\Model\Config\Source;
/**
* Class OriginShipment
*/
class OriginShipment extends \Magento\Ups\Model\Config\Source\Generic
{
/**
* Carrier code
*
* @var string
*/
protected $_code = 'originShipment';
/**
* {@inheritdoc}
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function toOptionArray()
{
$orShipArr = $this->carrierConfig->getCode($this->_code);
$returnArr = [];
foreach ($orShipArr as $key => $val) {
$returnArr[] = ['value' => $key, 'label' => $key];
}
return $returnArr;
}
}