Context.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool has(string $key)
  5. * @method static bool missing(string $key)
  6. * @method static bool hasHidden(string $key)
  7. * @method static bool missingHidden(string $key)
  8. * @method static array all()
  9. * @method static array allHidden()
  10. * @method static mixed get(string $key, mixed $default = null)
  11. * @method static mixed getHidden(string $key, mixed $default = null)
  12. * @method static mixed pull(string $key, mixed $default = null)
  13. * @method static mixed pullHidden(string $key, mixed $default = null)
  14. * @method static array only(array $keys)
  15. * @method static array onlyHidden(array $keys)
  16. * @method static array except(array $keys)
  17. * @method static array exceptHidden(array $keys)
  18. * @method static \Illuminate\Log\Context\Repository add(string|array $key, mixed $value = null)
  19. * @method static \Illuminate\Log\Context\Repository addHidden(string|array $key, mixed $value = null)
  20. * @method static mixed remember(string $key, mixed $value)
  21. * @method static mixed rememberHidden(string $key, mixed $value)
  22. * @method static \Illuminate\Log\Context\Repository forget(string|array $key)
  23. * @method static \Illuminate\Log\Context\Repository forgetHidden(string|array $key)
  24. * @method static \Illuminate\Log\Context\Repository addIf(string $key, mixed $value)
  25. * @method static \Illuminate\Log\Context\Repository addHiddenIf(string $key, mixed $value)
  26. * @method static \Illuminate\Log\Context\Repository push(string $key, mixed ...$values)
  27. * @method static mixed pop(string $key)
  28. * @method static \Illuminate\Log\Context\Repository pushHidden(string $key, mixed ...$values)
  29. * @method static mixed popHidden(string $key)
  30. * @method static \Illuminate\Log\Context\Repository increment(string $key, int $amount = 1)
  31. * @method static \Illuminate\Log\Context\Repository decrement(string $key, int $amount = 1)
  32. * @method static bool stackContains(string $key, mixed $value, bool $strict = false)
  33. * @method static bool hiddenStackContains(string $key, mixed $value, bool $strict = false)
  34. * @method static mixed scope(callable $callback, array $data = [], array $hidden = [])
  35. * @method static bool isEmpty()
  36. * @method static \Illuminate\Log\Context\Repository dehydrating(callable $callback)
  37. * @method static \Illuminate\Log\Context\Repository hydrated(callable $callback)
  38. * @method static \Illuminate\Log\Context\Repository handleUnserializeExceptionsUsing(callable|null $callback)
  39. * @method static \Illuminate\Log\Context\Repository flush()
  40. * @method static \Illuminate\Log\Context\Repository|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  41. * @method static \Illuminate\Log\Context\Repository|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  42. * @method static void macro(string $name, object|callable $macro)
  43. * @method static void mixin(object $mixin, bool $replace = true)
  44. * @method static bool hasMacro(string $name)
  45. * @method static void flushMacros()
  46. * @method static \Illuminate\Database\Eloquent\Model restoreModel(\Illuminate\Contracts\Database\ModelIdentifier $value)
  47. *
  48. * @see \Illuminate\Log\Context\Repository
  49. */
  50. class Context extends Facade
  51. {
  52. /**
  53. * Get the registered name of the component.
  54. *
  55. * @return string
  56. */
  57. protected static function getFacadeAccessor()
  58. {
  59. return \Illuminate\Log\Context\Repository::class;
  60. }
  61. }