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