���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
portal-cutunix
/
vendor
/
livewire
/
flux
/
src
/
Viewing: DateRange.php
<?php namespace Flux; use Carbon\Carbon; use Carbon\CarbonPeriod; class DateRange extends CarbonPeriod { protected $preset; public function __construct(...$arguments) { parent::__construct(...$arguments); } public function start(): ?Carbon { return $this->getStartDate(); } public function end(): ?Carbon { return $this->getEndDate(); } public function preset(): ?DateRangePreset { return $this->preset; } public function hasStart(): bool { return $this->getStartDate() !== null; } public function hasEnd(): bool { return $this->getEndDate() !== null; } public function hasPreset(): bool { return $this->preset !== null; } public function isNotAllTime(): bool { return $this->preset !== DateRangePreset::AllTime; } protected static function fromPreset(DateRangePreset $preset) { if ($preset === DateRangePreset::AllTime) { throw new \Exception('All time date range is not supported via this constructor because it requires a start date. Please use the ::allTime($start) constructor instead.'); } $instance = new static(...$preset->dates()); $instance->preset = $preset; return $instance; } public static function today() { return static::fromPreset(DateRangePreset::Today); } public static function yesterday() { return static::fromPreset(DateRangePreset::Yesterday); } public static function thisWeek() { return static::fromPreset(DateRangePreset::ThisWeek); } public static function lastWeek() { return static::fromPreset(DateRangePreset::LastWeek); } public static function last7Days() { return static::fromPreset(DateRangePreset::Last7Days); } public static function thisMonth() { return static::fromPreset(DateRangePreset::ThisMonth); } public static function lastMonth() { return static::fromPreset(DateRangePreset::LastMonth); } public static function thisQuarter() { return static::fromPreset(DateRangePreset::ThisQuarter); } public static function lastQuarter() { return static::fromPreset(DateRangePreset::LastQuarter); } public static function thisYear() { return static::fromPreset(DateRangePreset::ThisYear); } public static function lastYear() { return static::fromPreset(DateRangePreset::LastYear); } public static function last14Days() { return static::fromPreset(DateRangePreset::Last14Days); } public static function last30Days() { return static::fromPreset(DateRangePreset::Last30Days); } public static function last3Months() { return static::fromPreset(DateRangePreset::Last3Months); } public static function last6Months() { return static::fromPreset(DateRangePreset::Last6Months); } public static function yearToDate() { return static::fromPreset(DateRangePreset::YearToDate); } public static function allTime($start) { $instance = new static(Carbon::parse($start), Carbon::now()); $instance->preset = DateRangePreset::AllTime; return $instance; } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa