Debian Codegraph @

lib/3rdParty/composer/illuminate/support/Facades/Lang.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support\Facades;
4
5 /**
6 * @method static bool hasForLocale(string $key, string|null $locale = null)
7 * @method static bool has(string $key, string|null $locale = null, bool $fallback = true)
8 * @method static string|array get(string $key, array $replace = [], string|null $locale = null, bool $fallback = true)
9 * @method static string choice(string $key, \Countable|int|float|array $number, array $replace = [], string|null $locale = null)
10 * @method static void addLines(array $lines, string $locale, string $namespace = '*')
11 * @method static void load(string $namespace, string $group, string $locale)
12 * @method static \Illuminate\Translation\Translator handleMissingKeysUsing(callable|null $callback)
13 * @method static void addNamespace(string $namespace, string $hint)
14 * @method static void addPath(string $path)
15 * @method static void addJsonPath(string $path)
16 * @method static array parseKey(string $key)
17 * @method static void determineLocalesUsing(callable $callback)
18 * @method static \Illuminate\Translation\MessageSelector getSelector()
19 * @method static void setSelector(\Illuminate\Translation\MessageSelector $selector)
20 * @method static \Illuminate\Contracts\Translation\Loader getLoader()
21 * @method static string locale()
22 * @method static string getLocale()
23 * @method static void setLocale(string $locale)
24 * @method static string getFallback()
25 * @method static void setFallback(string $fallback)
26 * @method static void setLoaded(array $loaded)
27 * @method static void stringable(callable|string $class, callable|null $handler = null)
28 * @method static void setParsedKey(string $key, array $parsed)
29 * @method static void flushParsedKeys()
30 * @method static void macro(string $name, object|callable $macro)
31 * @method static void mixin(object $mixin, bool $replace = true)
32 * @method static bool hasMacro(string $name)
33 * @method static void flushMacros()
34 *
35 * @see \Illuminate\Translation\Translator
36 */
37 class Lang extends Facade
38 {
39 /**
40 * Get the registered name of the component.
41 *
42 * @return string
43 */
44 protected static function getFacadeAccessor()
45 {
46 return 'translator';
47 }
48 }