2023-06-11 12:14:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Shipping\Facades;
|
|
|
|
|
2023-12-03 14:07:47 +00:00
|
|
|
use Illuminate\Support\Collection;
|
2023-06-11 12:14:03 +00:00
|
|
|
use Illuminate\Support\Facades\Facade;
|
2023-12-03 14:07:47 +00:00
|
|
|
use Modules\Shipping\ShippingMethodManager;
|
2023-06-11 12:14:03 +00:00
|
|
|
|
|
|
|
/**
|
2023-12-03 14:07:47 +00:00
|
|
|
* @method static Collection available()
|
|
|
|
* @method static Collection all()
|
2023-06-11 12:14:03 +00:00
|
|
|
* @method static array names()
|
|
|
|
* @method static object get(string $name)
|
2023-12-03 14:07:47 +00:00
|
|
|
* @method static ShippingMethodManager register(string $name, callable|object $driver)
|
2023-06-11 12:14:03 +00:00
|
|
|
* @method static int count()
|
|
|
|
* @method static bool isEmpty()
|
|
|
|
* @method static bool isNotEmpty()
|
|
|
|
*
|
2023-12-03 14:07:47 +00:00
|
|
|
* @see ShippingMethodManager
|
2023-06-11 12:14:03 +00:00
|
|
|
*/
|
|
|
|
class ShippingMethod extends Facade
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the registered name of the component.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2023-12-03 14:07:47 +00:00
|
|
|
protected static function getFacadeAccessor(): string
|
2023-06-11 12:14:03 +00:00
|
|
|
{
|
2023-12-03 14:07:47 +00:00
|
|
|
return ShippingMethodManager::class;
|
2023-06-11 12:14:03 +00:00
|
|
|
}
|
|
|
|
}
|