Lang.php 786 B

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