/**
  * @param \Carbon\Carbon $day
  */
 public function __construct(Carbon $day)
 {
     $start = clone $day;
     $end = clone $day;
     $start->startOfDay();
     $end->endOfDay();
     parent::__construct($start, $end);
 }
 /**
  * @param \Carbon\Carbon $week
  */
 public function __construct(Carbon $week)
 {
     $start = clone $week;
     $end = clone $week;
     $start->startOfWeek();
     $end->endOfWeek();
     parent::__construct($start, $end);
 }
 /**
  * @param \Carbon\Carbon $month
  */
 public function __construct(Carbon $month)
 {
     $start = clone $month;
     $end = clone $month;
     $start->startOfMonth();
     $end->endOfMonth();
     parent::__construct($start, $end);
 }
 /**
  * @param \Carbon\Carbon $year
  */
 public function __construct(Carbon $year)
 {
     $start = clone $year;
     $end = clone $year;
     $start->startOfYear();
     $end->endOfYear();
     parent::__construct($start, $end);
 }