Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Pickup.php
Go to the documentation of this file.
1 <?php
7 
9 
18 {
22  protected $_code = 'pickup';
23 
27  protected $_isFixed = true;
28 
33 
38 
47  public function __construct(
48  \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
49  \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory,
50  \Psr\Log\LoggerInterface $logger,
51  \Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory,
52  \Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory,
53  array $data = []
54  ) {
55  $this->_rateResultFactory = $rateResultFactory;
56  $this->_rateMethodFactory = $rateMethodFactory;
57  parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
58  }
59 
66  {
67  // Pickup shipping method is not supported in Magento2 yet.
68  return false;
69  }
70 
76  public function getAllowedMethods()
77  {
78  return ['pickup' => __('Store Pickup')];
79  }
80 }
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory, \Psr\Log\LoggerInterface $logger, \Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory, \Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory, array $data=[])
Definition: Pickup.php:47
__()
Definition: __.php:13
$logger