<?php

namespace Kylin\World\Facades;

use Illuminate\Support\Facades\Facade;

/**
 * KylinWorld Facade
 *
 * @method static array getCountries()
 * @method static array countries()
 * @method static array getProvinces(string $countryCode)
 * @method static array provinces(string $countryCode)
 * @method static array getCities(int $parentId)
 * @method static array cities(int $parentId)
 * @method static array getDistricts(int $parentId)
 * @method static array districts(int $parentId)
 * @method static array getRegionTree(string $countryCode = 'CN')
 * @method static array regionTree(string $countryCode = 'CN')
 * @method static object|null byCode(string $code)
 * @method static object|null byName(string $name, ?string $countryCode = null)
 * @method static array search(string $keyword, int $limit = 20)
 * @method static void clearCache()
 */
class KylinWorld extends Facade
{
    protected static function getFacadeAccessor(): string
    {
        return 'kylin-world';
    }
}
