App.php
1 month ago
Artisan.php
1 month ago
Auth.php
1 month ago
Blade.php
1 month ago
Broadcast.php
1 month ago
Bus.php
1 month ago
Cache.php
1 month ago
Config.php
1 month ago
Cookie.php
1 month ago
Crypt.php
1 month ago
DB.php
1 month ago
Date.php
1 month ago
Event.php
1 month ago
Facade.php
1 month ago
File.php
1 month ago
Gate.php
1 month ago
Hash.php
1 month ago
Http.php
1 month ago
Lang.php
1 month ago
Log.php
1 month ago
Mail.php
1 month ago
Notification.php
1 month ago
ParallelTesting.php
1 month ago
Password.php
1 month ago
Queue.php
1 month ago
RateLimiter.php
1 month ago
Redirect.php
1 month ago
Redis.php
1 month ago
Request.php
1 month ago
Response.php
1 month ago
Route.php
1 month ago
Schema.php
1 month ago
Session.php
1 month ago
Storage.php
1 month ago
URL.php
1 month ago
Validator.php
1 month ago
View.php
1 month ago
Vite.php
1 month ago
Date.php
119 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWPSCOPED\Illuminate\Support\DateFactory; |
| 6 | /** |
| 7 | * @see https://carbon.nesbot.com/docs/ |
| 8 | * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php |
| 9 | * |
| 10 | * @method static mixed use(mixed $handler) |
| 11 | * @method static void useDefault() |
| 12 | * @method static void useCallable(callable $callable) |
| 13 | * @method static void useClass(string $dateClass) |
| 14 | * @method static void useFactory(object $factory) |
| 15 | * @method static \Illuminate\Support\Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null) |
| 16 | * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $tz = null) |
| 17 | * @method static \Illuminate\Support\Carbon|false createFromFormat($format, $time, $tz = null) |
| 18 | * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null) |
| 19 | * @method static \Illuminate\Support\Carbon createFromTimeString($time, $tz = null) |
| 20 | * @method static \Illuminate\Support\Carbon createFromTimestamp($timestamp, $tz = null) |
| 21 | * @method static \Illuminate\Support\Carbon createFromTimestampMs($timestamp, $tz = null) |
| 22 | * @method static \Illuminate\Support\Carbon createFromTimestampUTC($timestamp) |
| 23 | * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $tz = null) |
| 24 | * @method static \Illuminate\Support\Carbon|false createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null) |
| 25 | * @method static void disableHumanDiffOption($humanDiffOption) |
| 26 | * @method static void enableHumanDiffOption($humanDiffOption) |
| 27 | * @method static mixed executeWithLocale($locale, $func) |
| 28 | * @method static \Illuminate\Support\Carbon fromSerialized($value) |
| 29 | * @method static array getAvailableLocales() |
| 30 | * @method static array getDays() |
| 31 | * @method static int getHumanDiffOptions() |
| 32 | * @method static array getIsoUnits() |
| 33 | * @method static array getLastErrors() |
| 34 | * @method static string getLocale() |
| 35 | * @method static int getMidDayAt() |
| 36 | * @method static \Illuminate\Support\Carbon|null getTestNow() |
| 37 | * @method static \Symfony\Component\Translation\TranslatorInterface getTranslator() |
| 38 | * @method static int getWeekEndsAt() |
| 39 | * @method static int getWeekStartsAt() |
| 40 | * @method static array getWeekendDays() |
| 41 | * @method static bool hasFormat($date, $format) |
| 42 | * @method static bool hasMacro($name) |
| 43 | * @method static bool hasRelativeKeywords($time) |
| 44 | * @method static bool hasTestNow() |
| 45 | * @method static \Illuminate\Support\Carbon instance($date) |
| 46 | * @method static bool isImmutable() |
| 47 | * @method static bool isModifiableUnit($unit) |
| 48 | * @method static bool isMutable() |
| 49 | * @method static bool isStrictModeEnabled() |
| 50 | * @method static bool localeHasDiffOneDayWords($locale) |
| 51 | * @method static bool localeHasDiffSyntax($locale) |
| 52 | * @method static bool localeHasDiffTwoDayWords($locale) |
| 53 | * @method static bool localeHasPeriodSyntax($locale) |
| 54 | * @method static bool localeHasShortUnits($locale) |
| 55 | * @method static void macro($name, $macro) |
| 56 | * @method static \Illuminate\Support\Carbon|null make($var) |
| 57 | * @method static \Illuminate\Support\Carbon maxValue() |
| 58 | * @method static \Illuminate\Support\Carbon minValue() |
| 59 | * @method static void mixin($mixin) |
| 60 | * @method static \Illuminate\Support\Carbon now($tz = null) |
| 61 | * @method static \Illuminate\Support\Carbon parse($time = null, $tz = null) |
| 62 | * @method static string pluralUnit(string $unit) |
| 63 | * @method static void resetMonthsOverflow() |
| 64 | * @method static void resetToStringFormat() |
| 65 | * @method static void resetYearsOverflow() |
| 66 | * @method static void serializeUsing($callback) |
| 67 | * @method static void setHumanDiffOptions($humanDiffOptions) |
| 68 | * @method static bool setLocale($locale) |
| 69 | * @method static void setMidDayAt($hour) |
| 70 | * @method static void setTestNow($testNow = null) |
| 71 | * @method static void setToStringFormat($format) |
| 72 | * @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator) |
| 73 | * @method static void setUtf8($utf8) |
| 74 | * @method static void setWeekEndsAt($day) |
| 75 | * @method static void setWeekStartsAt($day) |
| 76 | * @method static void setWeekendDays($days) |
| 77 | * @method static bool shouldOverflowMonths() |
| 78 | * @method static bool shouldOverflowYears() |
| 79 | * @method static string singularUnit(string $unit) |
| 80 | * @method static \Illuminate\Support\Carbon today($tz = null) |
| 81 | * @method static \Illuminate\Support\Carbon tomorrow($tz = null) |
| 82 | * @method static void useMonthsOverflow($monthsOverflow = true) |
| 83 | * @method static void useStrictMode($strictModeEnabled = true) |
| 84 | * @method static void useYearsOverflow($yearsOverflow = true) |
| 85 | * @method static \Illuminate\Support\Carbon yesterday($tz = null) |
| 86 | * |
| 87 | * @see \Illuminate\Support\DateFactory |
| 88 | * @internal |
| 89 | */ |
| 90 | class Date extends Facade |
| 91 | { |
| 92 | const DEFAULT_FACADE = DateFactory::class; |
| 93 | /** |
| 94 | * Get the registered name of the component. |
| 95 | * |
| 96 | * @return string |
| 97 | * |
| 98 | * @throws \RuntimeException |
| 99 | */ |
| 100 | protected static function getFacadeAccessor() |
| 101 | { |
| 102 | return 'date'; |
| 103 | } |
| 104 | /** |
| 105 | * Resolve the facade root instance from the container. |
| 106 | * |
| 107 | * @param string $name |
| 108 | * @return mixed |
| 109 | */ |
| 110 | protected static function resolveFacadeInstance($name) |
| 111 | { |
| 112 | if (!isset(static::$resolvedInstance[$name]) && !isset(static::$app, static::$app[$name])) { |
| 113 | $class = static::DEFAULT_FACADE; |
| 114 | static::swap(new $class()); |
| 115 | } |
| 116 | return parent::resolveFacadeInstance($name); |
| 117 | } |
| 118 | } |
| 119 |