![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-shipping/Model/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Shipping\Model; use Magento\Shipping\Model\Carrier\AbstractCarrierInterface; /** * Interface CarrierFactoryInterface * * @api */ interface CarrierFactoryInterface { /** * Get carrier instance * * @param string $carrierCode * @return bool|AbstractCarrierInterface */ public function get($carrierCode); /** * Create carrier instance * * @param string $carrierCode * @param int|null $storeId * @return bool|AbstractCarrierInterface */ public function create($carrierCode, $storeId = null); /** * Get carrier by its code if it is active * * @param string $carrierCode * @return bool|AbstractCarrierInterface */ public function getIfActive($carrierCode); /** * Create carrier by its code if it is active * * @param string $carrierCode * @param null|int $storeId * @return bool|AbstractCarrierInterface */ public function createIfActive($carrierCode, $storeId = null); }