public static create ( DateTime $startDate, $endDate ) : |
||
$startDate | DateTime | |
return |
public static function create(DateTime $startDate, $endDate) : Period
{
return new static($startDate, $endDate);
}
/** * DashboardController constructor. */ public function __construct() { parent::__construct(); $end = Carbon::now()->minute(0); $this->limit = 16; $this->period = Period::create($end->copy()->subDays(30), $end); $this->country = env('ANALYTICS_COUNTRY'); }