Skip to content

Commit e511c76

Browse files
authored
Add PHPDoc to facade (#768)
1 parent c71bb11 commit e511c76

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/Mcamara/LaravelLocalization/Facades/LaravelLocalization.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,42 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static string setLocale(string $locale = null)
9+
* @method static bool isHiddenDefault(string $locale)
10+
* @method static void setSupportedLocales(array $locales)
11+
* @method static string localizeUrl(string $url = null, string|bool $locale = null)
12+
* @method static string|false getLocalizedUrl(string|bool $locale = null, string|false $url = null, array $attributes = [], bool $forceDefaultLocation = false)
13+
* @method static string|false getURLFromRouteNameTranslated(string|bool $locale, string $transKeyName, array $attributes = [], bool $forceDefaultLocation = false)
14+
* @method static string getNonLocalizedURL(string|false $url = null)
15+
* @method static string getDefaultLocale()
16+
* @method static array getLocalesMapping()
17+
* @method static string|null getLocalesFromMapping(string|null $locale)
18+
* @method static string|null getInversedLocaleFromMapping(string|null $locale)
19+
* @method static array getSupportedLocales()
20+
* @method static array getLocalesOrder()
21+
* @method static string getCurrentLocaleName()
22+
* @method static string getCurrentLocaleNative()
23+
* @method static string getCurrentLocaleDirection()
24+
* @method static string getCurrentLocaleScript()
25+
* @method static string getCurrentLocaleNativeReading()
26+
* @method static string getCurrentLocale()
27+
* @method static string getCurrentLocaleRegional()
28+
* @method static array getSupportedLanguagesKeys()
29+
* @method static bool checkLocaleInSupportedLocales(string|bool $locale)
30+
* @method static void setRouteName(string $routeName)
31+
* @method static string transRoute(string $routeName)
32+
* @method static string|false getRouteNameFromAPath(string $path)
33+
* @method static \Illuminate\Config\Repository getConfigRepository()
34+
* @method static bool hideUrlAndAcceptHeader()
35+
* @method static bool hideDefaultLocaleInURL()
36+
* @method static string createUrlFromUri(string $uri)
37+
* @method static void setBaseUrl(string $url)
38+
* @method static string getSerializedTranslatedRoutes()
39+
* @method static void setSerializedTranslatedRoutes(string $serializedRoutes)
40+
*
41+
* @see \Mcamara\LaravelLocalization\LaravelLocalization
42+
*/
743
class LaravelLocalization extends Facade
844
{
945
/**

0 commit comments

Comments
 (0)