/home/techb158/immovalet.com/platform/plugins/analytics/src
NameSizeModeActions
Exceptions/-0755rm
Facades/-0755rm
Http/-0755rm
Providers/-0755rm
Analytics.php62610644editdlrm
AnalyticsClient.php32680644editdlrm
AnalyticsClientFactory.php21120644editdlrm
GoogleClient.php18730644editdlrm
Period.php20090644editdlrm
Plugin.php8500644editdlrm
Edit: /home/techb158/immovalet.com/platform/plugins/analytics/src/Period.php (2009B)
$endDate) { throw InvalidPeriod::startDateCannotBeAfterEndDate($startDate, $endDate); } $this->startDate = $startDate; $this->endDate = $endDate; } /** * @param DateTimeInterface $startDate * @param DateTimeInterface $endDate * @return static * @throws InvalidPeriod */ public static function create(DateTimeInterface $startDate, DateTimeInterface $endDate): self { return new static($startDate, $endDate); } /** * @param int $numberOfDays * @return static * @throws InvalidPeriod */ public static function days(int $numberOfDays): self { $endDate = today(); $startDate = today()->subDays($numberOfDays)->startOfDay(); return new static($startDate, $endDate); } /** * @param int $numberOfMonths * @return static * @throws InvalidPeriod */ public static function months(int $numberOfMonths): self { $endDate = today(); $startDate = today()->subMonths($numberOfMonths)->startOfDay(); return new static($startDate, $endDate); } /** * @param int $numberOfYears * @return static * @throws InvalidPeriod */ public static function years(int $numberOfYears): self { $endDate = today(); $startDate = today()->subYears($numberOfYears)->startOfDay(); return new static($startDate, $endDate); } }