Lang.php 736B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static mixed trans(string $key, array $replace = [], string $locale = null)
  5. * @method static string transChoice(string $key, int | array | \Countable $number, array $replace = [], string $locale = null)
  6. * @method static string getLocale()
  7. * @method static void setLocale(string $locale)
  8. * @method static string|array|null get(string $key, array $replace = [], string $locale = null, bool $fallback = true)
  9. *
  10. * @see \Illuminate\Translation\Translator
  11. */
  12. class Lang extends Facade
  13. {
  14. /**
  15. * Get the registered name of the component.
  16. *
  17. * @return string
  18. */
  19. protected static function getFacadeAccessor()
  20. {
  21. return 'translator';
  22. }
  23. }