Context.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool has(string $key)
  5. * @method static bool hasHidden(string $key)
  6. * @method static array all()
  7. * @method static array allHidden()
  8. * @method static mixed get(string $key, mixed $default = null)
  9. * @method static mixed getHidden(string $key, mixed $default = null)
  10. * @method static mixed pull(string $key, mixed $default = null)
  11. * @method static mixed pullHidden(string $key, mixed $default = null)
  12. * @method static array only(array $keys)
  13. * @method static array onlyHidden(array $keys)
  14. * @method static \Illuminate\Log\Context\Repository add(string|array $key, mixed $value = null)
  15. * @method static \Illuminate\Log\Context\Repository addHidden(string|array $key, mixed $value = null)
  16. * @method static \Illuminate\Log\Context\Repository forget(string|array $key)
  17. * @method static \Illuminate\Log\Context\Repository forgetHidden(string|array $key)
  18. * @method static \Illuminate\Log\Context\Repository addIf(string $key, mixed $value)
  19. * @method static \Illuminate\Log\Context\Repository addHiddenIf(string $key, mixed $value)
  20. * @method static \Illuminate\Log\Context\Repository push(string $key, mixed ...$values)
  21. * @method static \Illuminate\Log\Context\Repository pushHidden(string $key, mixed ...$values)
  22. * @method static bool isEmpty()
  23. * @method static \Illuminate\Log\Context\Repository dehydrating(callable $callback)
  24. * @method static \Illuminate\Log\Context\Repository hydrated(callable $callback)
  25. * @method static \Illuminate\Log\Context\Repository handleUnserializeExceptionsUsing(callable|null $callback)
  26. * @method static \Illuminate\Log\Context\Repository flush()
  27. * @method static \Illuminate\Log\Context\Repository|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  28. * @method static \Illuminate\Log\Context\Repository|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  29. * @method static void macro(string $name, object|callable $macro, object|callable $macro = null)
  30. * @method static void mixin(object $mixin, bool $replace = true)
  31. * @method static bool hasMacro(string $name)
  32. * @method static void flushMacros()
  33. * @method static \Illuminate\Database\Eloquent\Model restoreModel(\Illuminate\Contracts\Database\ModelIdentifier $value)
  34. *
  35. * @see \Illuminate\Log\Context\Repository
  36. */
  37. class Context 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 \Illuminate\Log\Context\Repository::class;
  47. }
  48. }